Better punctuation
This commit is contained in:
parent
816bc5e8a6
commit
a4a1d66fa1
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ Imagine we need to write 1 billion. The obvious way is:
|
||||||
let billion = 1000000000;
|
let billion = 1000000000;
|
||||||
```
|
```
|
||||||
|
|
||||||
But in real life we usually avoid writing a long string of zeroes as it's easy to mistype. Also, we are lazy. We will usually write something like `"1bn"` for a billion or `"7.3bn"` for 7 billion 300 million. The same is true for most large numbers.
|
But in real life, we usually avoid writing a long string of zeroes as it's easy to mistype. Also, we are lazy. We will usually write something like `"1bn"` for a billion or `"7.3bn"` for 7 billion 300 million. The same is true for most large numbers.
|
||||||
|
|
||||||
In JavaScript, we shorten a number by appending the letter `"e"` to the number and specifying the zeroes count:
|
In JavaScript, we shorten a number by appending the letter `"e"` to the number and specifying the zeroes count:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue