StrToFloat

Declaration: StrToFloat(s: string): real;
Converts a given string s to a floating-point value. If the string contains an invalid number an exception is raised.

Hint: Please note that this function always expects a dot as a decimal separator (and not a comma as it is used in some languages).



1) Please note that the data type "real" is a placeholder and means either "single", "double", or "extended" depending on the declaration of the involved variables.