Subject: | exclude demo's of 1 in to_string? |
possible enhancement request (from Number-Fraction-1.08):
Should to_string() return:
$self->{num} . ($self->{den} == 1?"":"/$self->{den}");
instead of this?
"$self->{num}/$self->{den}"
I was working with fractions that were multiples of 1/2, so kept running
into output of strings like "1/1" ..