Skip to end of metadata
Go to start of metadata

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

<result> = <number>.toReal() 

<number>

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

<result>

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



Related articles