# Trunc (Real)

Grammar — Trunc(x)
FlagsNative | Function

Strips off the fractional portion of a real.

# Arguments

  • fixed — Value

Returns — fixed

native fixed Trunc(fixed x);

Category: Math / Arithmetic

# Examples

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L9901
Trunc((lv_wizenedDuelistStacks / 2.0))
// L25561
Trunc(lv_modScore)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2140
Trunc(lv_levelDifferenceReal)