DLiteScript

math.floor

Rounds a number down to the nearest integer.

Examples

1
2
printf("%g\n", math.floor(4.7))  // 4
printf("%g\n", math.floor(-4.2)) // -5