# Ceiling (Real)
Grammar — Ceiling(x)
Flags —Native
|Function
Returns the smallest value that is not less than the argument.
# Arguments
fixed
— Value
Returns — fixed
native fixed Ceiling(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/voidstory.sc2campaign
// L1477
Ceiling((libVoiC_gf_MissionObjectiveItemCount(lp_missionObjective) / 2.0))
# mods/heromods/zarya.stormmod
// L967
Ceiling(lv_newBoostAmount)
# mods/starcoop/starcoop.sc2mod
// L4058
Ceiling((lv_damageStarting+(lv_upgradeCount*lv_damagePerPoint)))
// L13620
Ceiling((lv_essenceBaseAmount * lv_essenceHardMultiplier))
// L13712
Ceiling((lv_biomassBaseAmount * lv_biomassHardMultiplier))
// L13715
Ceiling((lv_biomassBaseAmount * lv_biomassHardMultiplier))
// L17635
Ceiling((lv_essenceBaseAmount * lv_essenceHardMultiplier))
# mods/starcoop/starcoop.sc2mod
// L505
Ceiling(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed))
// L508
Ceiling(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed))
// L528
Ceiling(UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed))
// L1178
Ceiling((UnitGetPropertyFixed(lp_orderedUnit, c_unitPropSuppliesUsed, c_unitPropCurrent) * -1.0))
# mods/starcoop/starcoop.sc2mod
// L1904
Ceiling((IntToFixed(libCOOC_gf_CC_MissionExperienceReward())*libCOOC_gf_CC_PlayerExperienceResultModifier(lp_result)))
// L1905
Ceiling((IntToFixed(libCOOC_gf_MissionRewardTotalEarned2("Experience"))*libCOOC_gf_CC_PlayerExperienceResultModifier(lp_result)))
// L1908
Ceiling((IntToFixed(lv_baseXP)*libCOOC_gv_cC_PlayerExperienceEffortPct))
// L1910
Ceiling((IntToFixed(lv_objectiveXP)*libCOOC_gv_cC_PlayerExperienceEffortPct))