Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function FloatToStr(Value: Extended): string; overload;
function FloatToStr(Value: Extended; const FormatSettings: TFormatSettings): string; overload;
Returns a string from a floating point value.
FloatToStr converts the given floating-point value to its string representation. The conversion uses general number format with 15 significant digits.
The second form of FloatToStr, refers to localization information contained in the FormatSettings parameter.
var s: string;
s := FloatToStr(PI); //uses Math !!
//s == '3.14159265358979'
|
TFormatSettings,
FloatToStrF,
FormatFloat,
StrToFloat,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|