From Clomosy Docs

Revision as of 14:09, 24 December 2024 by ClomosyAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The FloatToStr function converts a floating point number Value into a displayable string. The value is displayed to 15 digits of precision. The Value type may be any of the floating point types.

Example

 var
   LongNumberValue, ShortNumberValue : float;
 
 {
   LongNumberValue = 1234567890.123456789;
   ShortNumberValue = 123.12;
 
   ShowMessage('LongNumberValue = '+FloatToStr(LongNumberValue));
   ShowMessage('ShortNumberValue = '+FloatToStr(ShortNumberValue));
 }

Output:

See Also