Floor

From GECK
Jump to: navigation, search


A function added by the Fallout Script Extender.

Description

Returns the nearest whole number that is less than a float

Syntax

[help]
(flooredVal:float) Floor float:float 

Or:

(flooredVal:float) flr float:float

Example

float fMyNum
let fMyNum := Floor 0.1

fMyNum == 0.0

let fMyNum := Floor 1.6

fMyNum == 1.0

let fMyNum := Floor 2.0

fMyNum == 2.0

let fMyNum := Floor 3.5

fMyNum == 3.0

See Also