0
How to delete numbers after a dot JavaScript!
I have a number like 3.7. How can I delete the .7? That's the question
2 Antworten
0
use Math floor
Math.floor( 15.5566855) // 15
0
var x = 3.7;
console.log(x | 0);// 3
I have a number like 3.7. How can I delete the .7? That's the question