Data structures · Classes and objects

Lab: A Fraction class

Floats round 1/10 to the nearest value they can store; a class of your own can keep fractions exact.