Round down
Round down the given number.
Sample Code:
function roundDown(num) {
// Enter your logic here...
}
Examples:
Input: 9.9
Output: 9
Explanation: 9 is the result of rounding down 9.9.
Input: 0.1
Output: 0
Explanation: 0 is the result of rounding down 0.1.