# Floor (Integer)

Grammar — Floor(x)
FlagsNative | Function

Returns the largest value less than or equal to the specified number.

# Arguments

  • fixed — Value

Returns — int

native int FloorI(fixed x);

Category: Math / Arithmetic

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L1587
FloorI((lv_arrowPingDistance / 16.0))
// L1615
FloorI((lv_arrowPingDistance / 16.0))
// L1587
FloorI((lv_arrowPingDistance / 16.0))
// L1615
FloorI((lv_arrowPingDistance / 16.0))

# mods/heroesdata.stormmod

SupportLib.galaxy

// L1832
FloorI((libGame_gv_scalingTicks * lp_rate))

# mods/warcoop/warmeleeai.sc2mod

MeleeWaveAI.galaxy

// L135
FloorI(CR*0.8)