FloatToStr

Top  Previous  Next

Prototype

 

StrOutput:= FloatToStr(floatInput)

 

Description

 

Transforms the real number into string passed for parameter.

 

Parameters

 

FloatInput: real numeric value to be transformed into string.

 

Returned value

 

StrOutput: number converted into string.

 

Notes

 

The FloatInput parameter has to be a real number type (Float), namely, between ±2.9*10-38 and  ±1.7*10+38.

 

Example

 

 

// Initialize a string variable

Input:='1200.12';

 

// Convert the string to a number

Number:=StrToFloat(Input);

 

// Perform a calculation

Result:= Number*3.14;

 

ApplicationLog(FloatToStr(Result));