# Floor (Real)

Grammar — Floor(x)
FlagsNative | Function

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

# Arguments

  • fixed — Value

Returns — fixed

native fixed Floor(fixed x);

Category: Math / Arithmetic

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// 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

VoidCampaignLib.galaxy

// L1482
Floor((libVoiC_gf_MissionObjectiveItemCount(lp_missionObjective) / 2.0))

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1059
Floor((lv_OffsetValue / lv_width))
// L4994
Floor(UnitGetPropertyFixed(libVCUI_gv_pU_GPUnit, c_unitPropEnergy, c_unitPropCurrent))

# mods/heroesdata.stormmod

GameLib.galaxy

// L1939
Floor(UnitGetPropertyFixed(lv_deadHeroUnit, c_unitPropLife, c_unitPropCurrent))

# mods/heromods/zarya.stormmod

LibHZAR.galaxy

// L164
Floor(lv_newShieldAmount)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L3514
Floor((lv_OffsetValue / lv_width))

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L4682
Floor(UnitGetPropertyFixed(libCOUI_gv_cU_GPUnit[lp_player], c_unitPropEnergy, c_unitPropCurrent))