From Clomosy Docs

Revision as of 14:45, 27 February 2023 by ClomosyManager (talk | contribs) (Created page with " function FloatToStr(Value Extended):string; 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.<br> '''Example:'''<br> '''var''' LongNumberValue, ShortNumberValue : float;<br> '''begin''' LongNumberValue := 1234567890.123456789; ShortNumberValue := 123.12;<br> ShowMessage('LongNumberValue = '+'''FloatToStr'''(Long...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

function FloatToStr(Value Extended):string;

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;
begin LongNumberValue := 1234567890.123456789; ShortNumberValue := 123.12;
ShowMessage('LongNumberValue = '+FloatToStr(LongNumberValue)); ShowMessage('ShortNumberValue = '+FloatToStr(ShortNumberValue)); end;

Output:

LongNumberValue = 1234567890,123456789
ShortNumberValue = 123,12