Open main menu

RAD Studio Code Examples β

SysUtilsFormatFloat (Delphi)

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