ifloor

int ifloor(fixed x)

Description

Rounds x down and returns the result as an integer.

See the article on Rounding for all rounding modes.

Examples

ifloor(2.3) -> 2
ifloor(3.8) -> 3
ifloor(5.5) -> 5
ifloor(-2.3) -> -3
ifloor(-3.8) -> -4
ifloor(-5.5) -> -6