filewritefloat( <var>, <left>, <right> )

Description

This writes the specified floating point variable to the file, with left and right specifying how many digits are on the left and right of the decimal point.

Notes

Left value - if there are fewer actual digits then the leftmost positions are space-padded, and if there are more digits, the leftmost are clipped.
Right value - if there are fewer digits after the decimal place, the rightmost positions are zero-padded, and if there are more, the rightmost are clipped (NOT rounded).

If you pass an integer variable, it is displayed in the same way.

Example

If Z is 1234.5678, then:
filewritefloat(Z,4,2)
outputs "1234.56".
filewritefloat(Z,2,2)
outputs "34.56".
filewritefloat(Z,3,3)
outputs "234.567".
filewritefloat(Z,5,5)
outputs " 1234.56780".

If A is 123, then:

filewritefloat(A,4,2)
outputs " 123.00".
filewritefloat(A,2,2)
outputs "23.00".
filewritefloat(A,3,3)
outputs "123.000".