public native override toString() as String
Converts this value to its textual representation.
Uses the shortest decimal digits that parse back to the same Double. Decimal notation is used for decimal exponents from -4 through 6; other nonzero finite values use scientific notation, such as 1.0e+7. Integral mantissas retain .0, and negative zero retains its sign. Special values are written as nan, inf and -inf. The decimal separator is always a dot, independent of the locale.
The decimal or scientific representation of this Double.
value = 12.5 text = value.toString() assert text == "12.5" assert (3.0).toString() == "3.0" assert (3_000_000_000.0).toString() == "3.0e+9" assert Double((0.1 + 0.2).toString()) == 0.1 + 0.2