SyntaxFix
Write A Post
Hire A Developer
Questions
You can use .toFixed(0) to remove complete decimal part or provide the number in arguments upto which you want decimal to be truncated.
Note: toFixed will convert the number to string.