Skip to content

FloatToTextFmt

Convert a float value to a string using a given mask.

Declaration

Source position: sysstrh.inc line 227

  function FloatToTextFmt(Buffer: PChar; Value: Extended; format: PChar; 
                         FormatSettings: TFormatSettings) : Integer;
  function FloatToTextFmt(Buffer: PChar; Value: Extended; format: PChar)
                          : Integer;

Description

FloatToTextFmt returns a textual representation of Value in the memory location pointed to by Buffer. it uses the formatting specification in Format to do this. The return value is the number of characters that were written in the buffer.

For a list of valid formatting characters, see FormatFloat

Errors

No length checking is performed on the buffer. The buffer should point to enough memory to hold the complete string. If this is not the case, an access violation may occur.

See also

Name Description
FormatFloat Format a float according to a certain mask.