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
function round_2(my_number) {
return Math.round(my_number*100)/100;
}
round_2(22.65444)
// Expected result: 22.65
Please give details of the problem