7.5

Table Of Contents
Argument
expression
Measure value to be converted.
precision
The number of decimal places to include in the result string.
Code Sample Examples
These examples illustrate floattostr().
Example 1
floattostr(3.14) %Returns 3.14
Example 2
floattostr(11) %Returns 11.0
Example 3
floattostr(34.6453455, 4) %Returns 34.6453
IntToCur (function)
Converts an integer expression into a measure value.
Syntax
inttocur( expression ) currency value
Argument
expression
Integer value to be converted.
IntToFloat (function)
Converts an integer expression into a measure value.
Syntax
inttofloat( expression ) measure value
Argument
expression
Integer value to be converted.
Code Sample Example
This example uses a loop to draw a series of blue rectangles.
©2010 Objectif Lune Inc - 396 -