8.18/6/2018

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.

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