diff --git a/native-datatypes.html b/native-datatypes.html index deec0fc..33458d7 100755 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -131,7 +131,7 @@ ZeroDivisionError: int division or modulo by zero
  1. The / operator performs floating point division. It returns a float even if both the numerator and denominator are ints.
  2. The // operator performs a quirky kind of integer division. When the result is positive, you can think of it as truncating (not rounding) to 0 decimal places, but be careful with that. -
  3. When integer-dividing negative numbers, the // operator rounds “up” to the nearest integer. Mathematically speaking, it’s rounding “down” since −6 is less than −5, but it could trip you up if you expecting it to truncate to −5. +
  4. When integer-dividing negative numbers, the // operator rounds “up” to the nearest integer. Mathematically speaking, it’s rounding “down” since −6 is less than −5, but it could trip you up if you were expecting it to truncate to −5.
  5. The // operator doesn’t always return an integer. If either the numerator or denominator is a float, it will still round to the nearest integer, but the actual return value will be a float.
  6. The ** operator means “raised to the power of.” 112 is 121.
  7. The % operator gives the remainder after performing integer division. 11 divided by 2 is 5 with a remainder of 1, so the result here is 1.