how to round a number to the smallest value JS code example Example: javascript round down Math.floor(x);