Use the toReal method to convert a integer number value into an real value:

<result> = <number>.toReal() 


A value of type integer or real or an expression that evaluates to a value of these types: the value to convert to real.


real: the number as a real. When number was already of type real, the method returns it unchanged.

Related articles