# Floor (Real)
Grammar — Floor(x)
Flags —Native
|Function
Returns the largest value less than or equal to the specified number.
# Arguments
fixed
— Value
Returns — fixed
native fixed Floor(fixed x);
# Related
Category: Math / Arithmetic
- [F] —
int
— Absolute Value (Integer) — ( AbsI ) - [F] —
fixed
— Absolute Value (Real) — ( AbsF ) - [F] —
int
— Arithmetic (Integer) — ( ) - [F] —
int
— Bitwise Arithmetic (Integer) — ( ) - [F] —
fixed
— Arithmetic (Real) — ( ) - [F] —
int
— Arithmetic Multiple (Integer) — ( ) - [F] —
int
— Bitwise Arithmetic Multiple (Integer) — ( ) - [F] —
fixed
— Arithmetic Multiple (Real) — ( ) - [F] —
int
— Ceiling (Integer) — ( CeilingI ) - [F] —
fixed
— Ceiling (Real) — ( Ceiling ) - [F] —
int
— Clamp (Integer) — ( libNtve_gf_ArithmeticIntClamp ) - [F] —
fixed
— Clamp (Real) — ( libNtve_gf_ArithmeticRealClamp ) - [F] —
void
— Cycle — ( ) - [F] —
int
— Floor (Integer) — ( FloorI ) - [F] —
fixed
— Floor (Real) — ( Floor ) - [F] —
int
— Log2 (Integer) — ( Log2I ) - [F] —
fixed
— Log2 (Real) — ( Log2 ) - [F] —
fixed
— Log (Real) — ( libNtve_gf_Log ) - [F] —
int
— Modulo (Integer) — ( ModI ) - [F] —
fixed
— Modulo (Real) — ( ModF ) - [F] —
int
— Power (Integer) — ( PowI ) - [F] —
fixed
— Power (Real) — ( Pow ) - [F] —
int
— Round (Integer) — ( RoundI ) - [F] —
fixed
— Round (Real) — ( Round ) - [F] —
int
— Pow2 (Integer) — ( Pow2I ) - [F] —
fixed
— Pow2 (Real) — ( Pow2 ) - [F] —
int
— Square Root (Integer) — ( SquareRootI ) - [F] —
fixed
— Square Root (Real) — ( SquareRoot ) - [F] —
int
— Trunc (Integer) — ( TruncI ) - [F] —
fixed
— Trunc (Real) — ( Trunc )
# Examples
# campaigns/void.sc2campaign
// L1424
Floor((gv_zergOnShakuras / 1000.0))
// L3467
Floor((gv_zergOnShakuras / 1000.0))
// L1424
Floor((gv_zergOnShakuras / 1000.0))
// L3467
Floor((gv_zergOnShakuras / 1000.0))
# campaigns/voidstory.sc2campaign
// L1482
Floor((libVoiC_gf_MissionObjectiveItemCount(lp_missionObjective) / 2.0))
# campaigns/voidstory.sc2campaign
// L1059
Floor((lv_OffsetValue / lv_width))
// L4994
Floor(UnitGetPropertyFixed(libVCUI_gv_pU_GPUnit, c_unitPropEnergy, c_unitPropCurrent))
# mods/heroesdata.stormmod
// L1939
Floor(UnitGetPropertyFixed(lv_deadHeroUnit, c_unitPropLife, c_unitPropCurrent))
# mods/heromods/zarya.stormmod
// L164
Floor(lv_newShieldAmount)
# mods/starcoop/starcoop.sc2mod
// L3514
Floor((lv_OffsetValue / lv_width))
# mods/starcoop/starcoop.sc2mod
// L4682
Floor(UnitGetPropertyFixed(libCOUI_gv_cU_GPUnit[lp_player], c_unitPropEnergy, c_unitPropCurrent))