round a float with two digits after the comma in JS

gaaanz einfach:
Math.round(x * 100) / 100;
in javascript

One thought on “round a float with two digits after the comma in JS

Comments are closed.