+ 1
I wrote a code , I want that the output contain only no not rest decimal places.please let me know how can I do it in javascript
2 odpowiedzi
+ 3
try this:
document.write(pies.toFixed(0));
0 means you want you want 0 numbers after the decimal point, and it rounds the number to how many numbers you want.
+ 2
Thank you Мартин 😑🎵