floor number jquery code example Example 1: javascript round down Math.floor(x); Example 2: javascript floor Math.floor(1.6); result: 1