SysUtilsFormatFloat (C++)

From Appmethod Code Examples
Jump to: navigation, search

Description

The following example displays in a dialog the free disk space of the current drive, with commas as thousand separators.

Code

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  ShowMessage(FormatFloat("#,##0 bytes", DiskFree(0)));
}

Uses