Skip Menu |

This queue is for tickets about the Number-Fraction CPAN distribution.

Report information
The Basics
Id: 17927
Status: resolved
Priority: 0/
Queue: Number-Fraction

People
Owner: DAVECROSS [...] cpan.org
Requestors: davidrw [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.08
Fixed in: (no value)



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" ..
On Wed Mar 01 18:49:29 2006, DAVIDRW wrote: Show quoted text
> 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" ..
Yep. I agree. I've fixed this and it will be in the next release. Dave...