# Ceiling (Integer)
Grammar — Ceiling(x)
Flags —Native
|Function
Returns the smallest value that is not less than the argument.
# Arguments
fixed
— Value
Returns — int
native int CeilingI(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
# mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod
// L11330
CeilingI((libPEB1_gv_goldTime_C - TimerGetElapsed(libGame_gv_gameTimer)))
// L11344
CeilingI((libPEB1_gv_silverTime_C - TimerGetElapsed(libGame_gv_gameTimer)))
# mods/starcoop/starcoop.sc2mod
// 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
// L1830
CeilingI((libCOUI_gv_cU_CustomMutatorItemCount / libCOUI_gv_cUC_CustomMutatorItemsPerPage))
// L1831
CeilingI((IntToFixed(libCOUI_gv_cU_CustomMutatorItemCount) / IntToFixed(libCOUI_gv_cUC_CustomMutatorItemsPerPage)))