×

Please give details of the problem

Skip to content

How to round down a number

function round_2(my_number) {  
    return Math.round(my_number*100)/100;  
}

Example

round_2(22.65444)

// Expected result: 22.65