Libc implementation of floor
Marcel Sondaar
Public Domain
double floor(double x)
gets and returns the integer value of x when rounded down.