How to remove 0 after decimal in JavaScript?

 

How can I remove the decimal part from JavaScript number?

you can use the flowing methods

let decimal = Math.trunc( number )

Tags:

Share:

Related posts