7. Numeric variables

7.1. Representation of numeric values

  • Internally, all numbers are represented with the binary system

  • This system only allows the digits 0 or 1

  • Floating point numbers may not have a proper representation in the binary system

  • Typing in the interpreter 3 * 0.1 will give us a response of: 0.30000000000000004

Try it here!

You have attempted of activities on this page