You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2002/12/22 20:44:13 UTC

Re: [lang] Fractions

Fraction class added to math subpackage, based on this class. Thanks.

Stephen

----- Original Message -----
From: <tr...@thinkvirtual.com>
To: "Stephen Colebourne" <sc...@btopenworld.com>
Sent: Friday, November 15, 2002 5:29 PM
Subject: RE: [lang] Fractions


> Here's Fraction again.
>
> Wonder if they're should be a commons.text package to extend java.text
with formatters and such?
>
> Travis
>
> ---- Original Message ----
> From: Stephen Colebourne <sc...@btopenworld.com>
> Sent: 2002-11-14
> To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> Subject: [lang] Fractions
>
> I've taken a quick look, some comments:
>
> - I would like to see Fraction be immutable
>     final
>     fields are private final
>     get methods
>
> - I would like to see if else statements with {} brackets to conform with
> our coding standards
>
> - I would like to see an Apache licence and package, to confirm the code
is
> a donation
>
> Otherwise they make sense as missing Java functionality. Would you like to
> resubmit ;-)
>
> Stephen
>
> ----- Original Message -----
> From: <tr...@thinkvirtual.com>
> > Just looked through the Jade api and I see some related things in the
> units package, but not seeing how to "easily" convert from say inches to
> meters?  Unless I'm missing something.
> >
> > In any case, i've attached the Fraction and FractionFormat classes.
> >
> >
> >
> > ---- Original Message ----
> > From: scolebourne@btopenworld.com
> > Sent: 2002-11-14
> > To: commons-dev@jakarta.apache.org
> > Subject: Re: Conversion utilities
> >
> > How does this relate to http://www.dautelle.com/jade/ ?
> >
> > You may have covered similar ground. There are good concepts in here and
> commons would seem to me to be a good ground for code like this.
> >
> > I would suggest submitting the fraction classes to [lang] to begin with.
> >
> > Stephen
> >
> > >  from:    travis@thinkvirtual.com
> > > I also have a package of conversion classes that convert different
> measurements from imperial to metric and vice versa for things like
Length,
> Pressure, Force, etc.
> > >
> > > And along with that I have a Fraction and FractionFormat class that
> deals with fractions (parsing, formatting, etc).
> > >
> > > Wonder if commons might be a good fit for that?
> > >
> > > Travis Reeder
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>