floor

floor function.

real
floor
(
real x
)

Examples

static assert((-0.01).floor == -1);
static assert(real(0).floor == 0);
static assert(0.01.floor == 0);

Meta