SplitScript reference / Float / floor
Float.floor
Method
T.floor() -> T where T: Float
Rounds down to the nearest integral value.
Finite fractional values move toward negative infinity. Infinity and NaN are returned unchanged.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Round a timer down
let wholeSeconds = 12.75.floor()