Posts marked with “Fractional Math”

PHP Puzzles: Fractional Math

by · September 9, 2022

0
 

We’ve seen how working with floating-point values can be problematic. What if we had a class that worked with fractions directly by tracking the numerator and denominator as integers? Let’s see if it’s possible. by Oscar Merida