Liberamente copiato dall'help di DELPHI 7
codice:
Delphi syntax:
function FormatFloat(const Format: string; Value: Extended): string; overload;
function FormatFloat(const Format: string; Value: Extended; const FormatSettings: TFormatSettings): string; overload;
C++ syntax:
extern PACKAGE AnsiString __fastcall FormatFloat(const AnsiString Format, Extended Value);
extern PACKAGE AnsiString __fastcall FormatFloat(const AnsiString Format, Extended Value, const TFormatSettings FormatSettings);
Description
FormatFloat formats the floating-point value given by Value using the format string given by
Format. The following format specifiers are supported in the format string:
Se leggi, c'è scritto che nel primo parametro ci va la stringa del formato "0.00"
e nel secondo ci va il valore!
quindi quello che serve a te è
codice:
Label6.Caption := FormatFloat('0.00',valore1);
Non mi sembrava così difficile