From Clomosy Docs

No edit summary
No edit summary
 
Line 29: Line 29:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Type_Conversion_Functions | Type Conversion Functions]]
* [[System_Library#Type_Conversion_Functions | Type Conversion Functions]]
{{#seo:|title=FloatToStr Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Use FloatToStr in Clomosy to convert a floating-point number to a string with up to 15 digits of precision for accurate display.}}
{{#seo:|description=Use FloatToStr in Clomosy to convert a floating-point number to a string with up to 15 digits of precision for accurate display.}}

Latest revision as of 14:09, 24 December 2024

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