Compute Floor

Compute the greatest integer value less than or equal to x.

Examples in JavaScript