SysUtilsFormatFloat (Object Pascal)

From Appmethod Code Examples
Jump to: navigation, search

Description

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

Code

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(FormatFloat('#,##0 bytes', DiskFree(0)));
end;

Uses