Answers for "redondear decimales javascript"

0

redondear decimales javascript

console.log(Math.round(0.9));
// expected output: 1

console.log(Math.round(5.95), Math.round(5.5), Math.round(5.05));
// expected output: 6 6 5

console.log(Math.round(-5.05), Math.round(-5.5), Math.round(-5.95));
// expected output: -5 -5 -6
Posted by: Guest on August-05-2021

Code answers related to "redondear decimales javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language