Jass documentation Database

JASS Documentation Database REFORGED


Results for the query "R2I" as a "function"

The search keyword must be a single word (no spaces).

Function R2I

Line: 2226
Location: common.j
Constant? no
Type: native
Arguments: real r
Returns: integer

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. native R2I takes real r returns integer

Information about R2I

Information contributed by City17
on February 25, 2022, 01:46:49 PM.
returns an integer representation for real r. The output will be rounded towards 0 if it is a real number. Only raises an error if r is null. NaN is not a possible value in Warcraft 3 (always reset to 1.0)

For extermely large values the minimum/maximum representable signed integer will be returned (e.g. for Lua: math.mininteger and math.maxinteger)
Page loaded in 0.0594 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...