Im using javascript round to round the numbers. But when the value is $106.70 the output shows only $106.7 and its missing the last 0. How can I add a zero for numbers ending with a zero or is there any easier way than using if else to check this?
Im using javascript round to round the numbers. But when the value is $106.70
Share
You can use the
.toFixedmethod:And it rounds: