Real.ToString

Parent Previous Next

Real.ToString.

Returns the real as a string. The decimal point is always a dot - never a comma - providing culture independence.


Syntax.


 ToString() : String

 


Example:


 String s := (-10.07).ToString(); //Now s == "-10.07";



Please notice, when working with numbers that contains a combination of integral, fractional or exponential digits, the returned string may not appear exactly as written in the source code due to changes regarding the use of the decimal comma and the exponential digits - perhaps causing an unexpected positioning of the decimal comma in the string.