DEV Community

Zevan Rosser
Zevan Rosser

Posted on

Short Floor (to Integer)

console.log(~~6.62606889);
console.log(0|6.62606889);
console.log(0^6.62606889);

console.log(Math.floor(6.62606889));
console.log(parseInt(6.62606889,10));
Enter fullscreen mode Exit fullscreen mode

Can you think of any other ways to floor?

Top comments (0)