Update article.md
ms - official international name for millisecond. 1 ms = 1 * 10**(-3) second (or 1e-3). Source : https://en.wikipedia.org/wiki/Metric_prefix . 0.000001 or 1e-6 - it's microsecond. Better name for this variable 'mcs' or 'us'. 'mcs' easier to understand.
This commit is contained in:
parent
246c600f11
commit
de83e748ad
1 changed files with 2 additions and 2 deletions
|
@ -44,13 +44,13 @@ In other words, `e` multiplies the number by `1` with the given zeroes count.
|
|||
Now let's write something very small. Say, 1 microsecond (one millionth of a second):
|
||||
|
||||
```js
|
||||
let ms = 0.000001;
|
||||
let mсs = 0.000001;
|
||||
```
|
||||
|
||||
Just like before, using `"e"` can help. If we'd like to avoid writing the zeroes explicitly, we could say the same as:
|
||||
|
||||
```js
|
||||
let ms = 1e-6; // six zeroes to the left from 1
|
||||
let mcs = 1e-6; // six zeroes to the left from 1
|
||||
```
|
||||
|
||||
If we count the zeroes in `0.000001`, there are 6 of them. So naturally it's `1e-6`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue