7.4

Table Of Contents
Argument
expression
Measure value to be converted. The decimal part is rounded down to 2 decimal points.
Code Sample Example
This example converts a floating point value into a currency value.
floattocur(3.263457) %Returns 3.26
FloatToInt (function)
Converts a measure expression into an integer value.
Syntax
floattoint( expression ) integer value
Argument
expression
Measure value to be converted. The decimal part is rounded down to a whole number.
Code Sample Examples
These examples illustrate floattoint().
Example 1
floattoint(3.2) %Returns 3
Example 2
floattoint(11.6) %Returns 12
FloatToStr (function)
Converts a measure expression into a string value.
Syntax
floattostr( expression[, precision]) string value
Argument
expression
Measure value to be converted.
precision
The number of decimal places to include in the result string.
©2010 Objectif Lune Inc - 280 -