Icon StrToFloat

Unit: Internal

Available In: Client and Server Applications

function StrToFloat(const Value: String): Double

The StrToFloat function converts the formatted string input parameter into its native value. The decimal separator used in the formatted string is determined by the TFormatSettings DecimalSeparator property. The return value is a Double value.

Examples

A := StrToFloat('1200.548');
X := FloatToStr(A);  // X is '1200.548'
Image