1
I created a class for fractions (rational numbers). It contains basic operators for arithmetics, comparisons, and input and output.
I often write classes for fractions, 2D or 3D points, and log probabilities for my projects. I even use templates for underlying types sometimes. For example, 2d poi...