StrToFloat
Previous  Top  Next

Prototype

FloatOutput:= StrToFloat (strInput)

Description

It transforms the string passed as parameter into real number.

Parameters

StrInput: string to be transformed into real number.

Returned value

FloatOutput: number obtained by conversion.

Notes

None.

Example

//It demands a value
Input:='1200.12';

//it converts the number
Number:=StrToFloat(Input);

//It makes a calculation
Result:= Number*3.14;

ApplicationLog(_CurrentAgent,FloatToStr(Result));