0
How to make decimal fractures appear as integer in JavaScript?
The result maybe long decimal fracture I want ro make the result smaller
4 Réponses
+ 1
Have you looked at the demo code?
This :
https://code.sololearn.com/W1OtO21jXR4y/?ref=app
Explanation :
toFixed is a Number.prototype function, you need to bind to a Number instance.
toFixed() truncates a number.
If you need rounding, it is Math.round()
+ 1
U helped me
You answered me before
So thanx
0
Can you explain what did you write💔