FIX() |
|
|
The FIX() function returns a string representation of a floating point value with a specified precision and optional truncation.
Format
FIX(expr {, prec{, truncate}})
where
The FIX() function converts a floating point value to a character string.
The prec argument determines the number of decimal places in the result. If omitted, the current value of the program PRECISION is used. A precision less than 0 is treated as 0. A precision greater than 14 is treated as 14.
The truncate argument controls rounding. A value of False (0 or a null string) or omitting the argument causes rounding to be applied. Any other value causes truncation.
Examples
V = 12.3456789
|