~1 min read|
I was working on a toy problem recently which involved something called a “Giga” second. This is 10^9 seconds.
Easy enough, we can calculate that with
But what if I told you there was another way?
console.log(1e9 == Math.pow(10, 9))
So, what is this
[T]he letter E (or e) is often used to represent “times ten raised to the power of” (which would be written as ”× 10n”)
This is convenient!
But, depending on what precedes
e, this might be confusing, or more specifically, it’s confusing if it’s
10e2 - that’s 1000, not 100, because it’s 10*102 or 103.
Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!