R2I
- Parameters
- r - real
- comment
- Returns an integer representation for real r. The output will be rounded towards 0 if it is a real number. - Lua: Only raises an error if r is null. - For extermely large values the minimum/maximum representable signed integer will be returned (e.g. for Lua: - math.minintegerand- math.maxinteger)
- note
- NaN is not a possible value in Warcraft 3 (always reset to 1.0). 
- pure
- This function is pure. For the same values passed to it, it will always return the same value.
- patch
- 1.00 
- Source
- common.j (suggest an edit or discuss on Github)
- return type
- integer
- Source code
- native R2I takes real r returns integer