Kayavak

Kayavak / Trails / Numbers in code: money, floats and integers

Trail

Numbers in code: money, floats and integers

For: Developers who have been bitten by 0.1 + 0.2, a paisa that went missing, or an integer that turned negative.
By the end: Know exactly what integers, floats, decimals and fractions can and can't hold, choose the right one for money, measurements and identifiers, and round, compare and convert them on purpose.

10 chapters◷ ~5 h reading about 4 weeks at 4 h a week

  1. 1Start Here: What Numbers AreArithmetic and Numbers · Book 128 minExercises · Companion · Household Numbers stage
  2. 2Place Value and BasesArithmetic and Numbers · Book 131 minExercises · Companion · Household Numbers stage
  3. 3Number Systems & Data RepresentationFoundations of Computing · Volume 145 minExercises · Companion · TiffinBox stage
  4. 4Multiplying and DividingArithmetic and Numbers · Book 130 minExercises · Companion · Household Numbers stage
  5. 5FractionsArithmetic and Numbers · Book 126 minExercises · Companion · Household Numbers stage
  6. 6Decimals and PercentagesArithmetic and Numbers · Book 124 minExercises · Companion · Household Numbers stage
  7. 7Negative NumbersArithmetic and Numbers · Book 129 minExercises · Companion · Household Numbers stage
  8. 8Powers, Roots, Scientific Notation and LogarithmsArithmetic and Numbers · Book 131 minExercises · Companion · Household Numbers stage
  9. 9Estimation, Rounding, Error and UnitsArithmetic and Numbers · Book 128 minExercises · Companion · Household Numbers stage
  10. 10The Real Number LineArithmetic and Numbers · Book 127 minExercises · Companion · Household Numbers stage

Each chapter opens with Start here in plain words. On a trail you can stop after it and move on; come back for the deeper sections when the trail is done.