Skip to content

Instantly share code, notes, and snippets.

@dumptyd
Created August 4, 2017 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dumptyd/a52216839e2234c49346eaf745dd3283 to your computer and use it in GitHub Desktop.
Save dumptyd/a52216839e2234c49346eaf745dd3283 to your computer and use it in GitHub Desktop.
Understanding scientific notation
Let's consider one case: 2.9979e8
- take the number before "E/e/10" -> 2.9979
- take the number after "E/e/10" -> 8
- Calc the "factor" : If number *after* E is +ve, Multiply, else divide 1 by 1 followed by that many number of zeros.
So -> 1 * 1 00 000 000
- Multiply number *before* E by factor -> 2.9979 * ( 1 * 1 00 000 000) -> 299790000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment