# Ceiling (Integer)

Grammar — Ceiling(x)
FlagsNative | Function

Returns the smallest value that is not less than the argument.

# Arguments

  • fixed — Value

Returns — int

native int CeilingI(fixed x);

Category: Math / Arithmetic

# Examples

# mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod

LibPEB1.galaxy

// L11330
CeilingI((libPEB1_gv_goldTime_C - TimerGetElapsed(libGame_gv_gameTimer)))
// L11344
CeilingI((libPEB1_gv_silverTime_C - TimerGetElapsed(libGame_gv_gameTimer)))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L3607
CeilingI(lv_multiplierStack)
// L3612
CeilingI(lv_multiplierStack)
// L5731
CeilingI((lv_default*lv_changedFactor))
// L15284
CeilingI(lv_expectedDrop)
// L24004
CeilingI((CatalogFieldValueGetAsInt(c_gameCatalogUnit, lv_itUnit, "CostResource[" + IntToString(0) + "]", c_playerAny)*lv_costMutiplayer))
// L26231
CeilingI(EventUnitHealAmount())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L1830
CeilingI((libCOUI_gv_cU_CustomMutatorItemCount / libCOUI_gv_cUC_CustomMutatorItemsPerPage))
// L1831
CeilingI((IntToFixed(libCOUI_gv_cU_CustomMutatorItemCount) / IntToFixed(libCOUI_gv_cUC_CustomMutatorItemsPerPage)))