DEPRECATED | Please use toFixed added in Arma 3 1.66 |
Returns a higher precision string representation of a IEEE 754 floating point number than the str function.
This function is as barebones as possible. Inline macro version of this function can be used with FLOAT_TO_STRING(num).
_number | Number to format [Number] |
The number formatted into a string.
_str = 100.12345678 call CBA_fnc_floatToString; // _str = "100.123459", using (str 100.12345678) results in "100.123" _str = 2000.1236 call CBA_fnc_floatToString; // _str = "2000.1236570", using (str 2000.1236) results in "2000.12"
Nou