Experience-Monks / math-as-code

a cheat-sheet for mathematical notation in code form
MIT License
15.02k stars 1.07k forks source link

Number hierarchy and floating point numbers #80

Open sfmiller940 opened 4 years ago

sfmiller940 commented 4 years ago

It's probably worth noting that floating point numbers are rational numbers (as well as real and complex).

The number hierarchy is usually ordered by inclusion:

  1. Natural
  2. Integers
  3. Rational
  4. Real
  5. Complex

It helps in explaining how each type of number contains the previous numbers.

Great page. Just trying to help. Thanks!