7.4

Table Of Contents
Integer, measure, or currency values. Both expressions must be the same type. The returned value is set according to the
type of the parameters.
Code Sample Examples
Examples 1 and 2 show both ways of adding numbers.
Example 1
show(inttostr(2+2)) %Displays 4
Example 2
show(floattostr(add(4.7,2.1))) %Displays 6.8
FloatToCur (function)
Converts a measure expression into a currency value.
Syntax
floattocur( expression ) currency value
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
IntToCur (function)
Converts an integer expression into a measure value.
Syntax
inttocur( expression ) currency value
Argument
expression
Integer value to be converted.
StrToCur (function)
Converts a string value into a currency value.
Syntax
strtocur( string ) currency value
©2010 Objectif Lune Inc - 515 -