• Pure

    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.minintegerlua and math.maxintegerlua)

    Parameters

    • r: number

    Returns number

    Note

    NaN is not a possible value in Warcraft 3 (always reset to 1.0).

Generated using TypeDoc