Answers for "run down number javascript"

0

run down number javascript

using Math.floor

console.log(Math.floor(5.95));
// expected output: 5

console.log(Math.floor(5.05));
// expected output: 5

console.log(Math.floor(5));
// expected output: 5

console.log(Math.floor(-5.05));
// expected output: -6
Posted by: Guest on October-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language