Javascript numbers

  • Posted on: 15 September 2016

Expressing numbers in the powers of 10 can be done like this is javascript:

console.log(2.99792458e8);

This will output the number: 299792458

Tags: 
Category: