Given a double, I want to round it to a given number of points of precision after the decimal point, similar to PHP\'s round() function.
The closest thing I
This works pretty well
var price=99.012334554 price = price.roundTodouble(); print(price); // 99.01