Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   Mathematic and floating point utility functions
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
General functions
 
Base functions
Cryptography APIs
Date and time manipulation
Developers support
Mathematic and floating point utility functions
Money type utility functions
Mathematic and floating point utility functions

The floating point library offers 64-bit floating point calculations.
You do not need to load this library to use the FLOAT type, but the library
does provide a lot of useful functions to work with FLOAT values

Use the following code in your script to load the library:

  LOADLIB "wh::float.whlib";

Public Functions and Macros

ACos Returns the arccosine of a value.
ASin Returns the arcsine of a value.
ATan Returns the arctangent of a value.
ATan2 Returns the arctangent of a value divided by another value.
Ceil Returns the smallest integer FLOAT value larger than a value.
Cos Returns the cosine of a value.
CosH Returns the hyperbolic cosine of a value.
Exp Returns e raised to the power of a value.
FMod Returns the floating-point remainder of a value divided by another value.
FloatToInteger Converts a FLOAT value to an INTEGER value.
Floor Returns the largest integer FLOAT value smaller than a value.
FormatFloat Formats a FLOAT value and returns the resulting STRING.
FrExp Splits a value into a mantissa and an exponent
LdExp Calculates mantissa * pow(2, exponent).
Log Returns the natural logarithm of a value.
Log10 Returns the logarithm of a value, using base 10.
ModF Splits a value into an integral and a fractional part.
Pow Calculates a value of a power equation.
Sin Returns the sine of a value.
SinH Returns the hyperbolic sine of a value.
Sqrt Returns the square root of a value.
Tan Returns the tangent of a value.
TanH Returns the hyperbolic tangent of a value.
ToFloat Creates a FLOAT value from a string.

Public Variables

PI The value of Pi (3.141592653589793238)
 
Top To top of page