D Documentation  
floor
real floor(real x)

Rounds x down.

Example:
writefln("floor(2.3)    is %d",cast(int)floor(2.3));
writefln("ceil(3.2)    is %d",cast(int)ceil(3.2));

Output:
floor(2.3)    is 2
ceil(3.2)    is 4

See also:
std.math.ceil
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.