you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 1 year ago* (3 children)

Cause fractions can be figured out in context. You can store the numerators and have the denominator as a constant in the code.

  • source
  • hideshow 3 child comments
  • [–] 11 points 1 year ago (2 children)

    You can also have a type which does it. Raku has a Rational type for this.

  • source
  • parent
  • hideshow 2 child comments