help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

FloatToTextFmt

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

Declaration

Source position: line 0

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

FormatFloat

  

Format a float according to a certain mask.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505