log2 (Function) |
Top Previous Next |
This function will calculate the base-2 logarithm of the argument.
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.
Returns: DOUBLE The base-2 logarithm of V. If the value is 0, -Infinity is returned. If the value is less than 0, NaN is returned.
Declaration: FUNCTION log2 : DOUBLE;
Example: INCLUDE rtcu.inc |