Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > RealToStr

RealToStr

Converts a floating-point number into a string.

Syntax

RealToStr(Number, Width, Places)

Number:

The floating-point number to convert.

Width:

The width of the string.

Places:

The number of decimal places contained in the string.

Return Value

The floating-point number (as a string).

Related Functions

StrToReal

Example

Variable=RealToStr(12.345,10,1);
! Sets Variable to " 12.3" (10 characters long).

See Also

String Functions