The Numeric Class
The Numeric class provides methods for working with numbers.
Values for this data type are limited to 15 significant digits.
Syntax
Numeric
Methods
Name | Description |
---|---|
|
Returns the absolute value. |
|
Returns the angle theta from the conversion of rectangular
coordinates (x , y ) to polar coordinates (r, theta) |
|
Returns the value converted to a byte. |
|
Returns the cube root of a numeric value. |
|
Returns the smallest numeric value that is greater than or equal to the value and is equal to a mathematical integer. |
|
Returns the trigonometric cosine of an angle. |
|
Returns the hyperbolic cosine of a numeric value. |
|
Returns the base -e exponential. |
|
Returns the largest numeric value that is less than or equal to the value and is equal to a mathematical integer. |
|
Converts the value to a string representation defined by a format string. |
|
Returns the unbiased exponent used in the representation of a numeric value. |
|
Returns the value converted to an integer (signed 32 bit). |
|
Returns TRUE if the value has infinite value. |
|
Returns TRUE if the value is not a number. |
|
Returns TRUE if the object is tagged as null, otherwise false. This is the case for null valued input variables read from the input stream. For backward compatibility, null values do not have special behavior when used with the various operators. Specifically a numeric input variable that is null behaves in arithmetic like the 0 value. |
|
Returns the natural logarithm (base e) of a numeric value. |
|
Returns the base 10 logarithm of a numeric value. |
|
Returns the greater of two values. |
|
Returns the smaller of two values. |
|
Returns the Numeric value that is closest in value to the value and is equal to a mathematical integer. |
|
Returns the closes integer to the value. |
|
Returns the signum function of the value; zero if the value is zero, 1.0 if the value is greater than zero, -1.0 if the value is less than zero. |
|
Returns the trigonometric sine, measured in radians. |
|
Returns the hyperbolic sine of a numeric value. |
|
Returns the correctly rounded positive square root of a double value. |
|
Returns the tangent of an angle measured in radians. |
|
Returns the hyperbolic tangent of a numeric value. |
|
Returns the Boolean false when the value is 0. Returns true for any other value. |
|
Returns the unicode character representation of a numeric value. For example, |
|
Returns a color object. The value is interpreted as a RGB integer. |
|
Converts the value from radians to degrees. |
|
Converts the value from degrees to radians. |
|
Converts the value to a string representation. |
|
Gets the current page number of the physical page. |
|
Gets the total number of physical pages. |
|
Gets the page number of the specified page. |
|
Gets the total number of pages for the specified page. |
Usage
With RTL classes, it is not possible to create and subclass objects. The
new
keyword is not supported.