Javascript Number Type Question 7

Introduction

What is the output of the following code?

let d = 33254.4234234;
console.log( d.toPrecision(8) ); // 
console.log( d.toPrecision(2) ); // 
console.log( d.toPrecision(5) ); // 


33254.423
3.3e+4
33254



PreviousNext

Related