Background for Fallout 4
Member of the Math script
intfunctionCeiling(floatafValue)NativeGlobal

Description

Wiki Description

Calculates the smallest integer greater than or equal to the passed in value.

Documentation Comment

Calculates the ceiling of the passed in value - the smallest integer greater than or equal to the value


Caveats


Parameters

floatafValue

CK Wiki Description

The value to get the ceiling of.


Examples

int x = Ceiling(2.1) ; x == 3
int y = Ceiling(5.9) ; y == 6

Auto-Generated Example

float myFloat__afValue

int returnedValue = Math.Ceiling(myFloat__afValue)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.