klyn.Float.toString
method
public native override toString() as String
Description

Converts this value to its textual representation.

Uses the shortest decimal digits that parse back to the same Float, without exposing the additional digits of a widened Double. Decimal notation is used for decimal exponents from -4 through 6; other nonzero finite values use scientific notation, such as 1.0e+7. The exponent is taken from the shortest decimal representation, so 0.0001f is displayed as 0.0001 despite binary rounding. Integral mantissas retain .0, and negative zero retains its sign. Special values are written as nan, inf and -inf, without an f suffix. The decimal separator is a dot, independent of the locale.

Returns

The textual representation of this Float.

Example
value = 12.5f
assert value.toString() == "12.5"
assert (0.1f).toString() == "0.1"
assert (16_777_216.0f).toString() == "1.6777216e+7"