Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions Introduction > IntToReal

IntToReal

Converts an integer into a real (floating point) number.

Syntax

IntToReal(Number)

Number:

The integer to convert.

Return Value

The real number.

Related Functions

RealToStr, StrToInt

Example

! Sets Variable to 45.0
Variable=IntToReal(45);
! Sets Variable to -45.0
Variable=IntToReal(-45);

See Also

Miscellaneous Functions