Friday, February 22, 2019

Round number up in JavaScript

I have the following number




0.135


I'd like to round it to 2 decimal places, I'm using...



(newCostDiff/2).toFixed(2)


only this returns




0.13


Can anyvody advise me on how to do this?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...