RealToInt(), R2I()

Summary

Converts a real number to an integer.

Syntax

int_value = RealToInt(real real_value)

Argument Contents
real_value A real number

Returns

An integer that is equal to the integer portion of real_value.

Notes

  • Can also be called as R2I().

Example

n = 34.56
ShowArray({r2i(n)}) // m = 34

See Also

Function Summary
Format() Formats a number
IntToString() Converts an integer to a string representation of the integer value
RealToString() Converts a real number to a string
Round() Returns a value rounded to a specified number of decimal places
StringToInt() Converts a string to an integer value
StringToReal() Converts a string to a real number