|
Other Numeric Functions
The following numerical functions are also supported by GPP:
DEGREE(<num-expr>) Convert number from radians to degrees
RADIAN(<num-expr>) Convert number from degrees to radians
SQRT(<num-expr>) Find the square root of the expression
ABS_(<num-expr>) Find the absolute value of the expression
FORMATTED_NUM(<variable>) Return the "formatted" value of a variable
FRAC_DIGITS(<variable>) Number of digits in the variable format
INT_(<num-expr>) Return the integer part of the expression
FRAC_(<num-expr>) Return the fraction part of the expression
DEGREE simply returns its argument multiplied by 180 / PI. The RADIAN function does the reverse operation.
SQRT always returns a positive number. It will generate a runtime error if its argument has a negative value.
ABS_ is a new GPP2 function, returning the absolute value of its argument.
|