Navigation: Function Reference > General Utility Functions > strToFloat()

strToFloat()

Top  Previous  Next

strToFloat( source: String ) : Extended;

 

Converts a numerical string into a floating point number.

 

Parameters

 

source

numerical string

 

var s: string;

var f: Double;

 

s := '32.456432';

 

f := strToFloat( s );

 

//f is now equal to 32.456432;

 

See also:

 

strToIntDef()

strToInt()