Ceil

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns the nearest whole number that is greater than a float

Syntax

[help]
(float) Ceil float:float

Example

float fMyNum
let fMyNum := Ceil 0.1

fMyNum == 1.0

let fMyNum := Ceil 1.6

fMyNum == 2.0

let fMyNum := Ceil 2.0

fMyNum == 2.0

let fMyNum := Ceil 3.5

fMyNum == 4.0

See Also