How to decrease the decimal places of a float number in javascript?
For example, I want 3.3333333333
to become 3.34
.
What is the simplest way to do this in javascript
?
I've tried functions like Math.ceil
, but it returns me the integer value.
float_value = 3.333333;
Math.ceil(float_value); // 4