How JS converts scientific notation into data values

  (1) The type of scientific notation is numeric

  1. Add directly to the null character

let eformat = 1.34e5 
let number = '' + eformat or eform + '' 
console.log ( 'Result is:' , number) The 
result is: 134000

  2. Call the toString () method

  (2) The type of scientific notation is the string type

  1、

  2、

Guess you like

Origin www.cnblogs.com/bien94/p/12728886.html