frexp (Function) |
Top Previous Next |
This function will break the value into its binary significand and an integral exponent for 2. The values will follow the following formula: V = significant * 2^exp
Note: This function works with DOUBLE, but can also work with FLOAT as described in the Floating-point math introductory section.
Input: V : DOUBLE Value to decompose.
Output: exp : DOUBLE Exponent
Returns: DOUBLE The binary significant of v.
Declaration: FUNCTION frexp : DOUBLE;
Example: INCLUDE rtcu.inc |