float equality

Kevin Bealer kevindangerbealer at removedanger.gmail.com
Sun Feb 20 18:21:14 PST 2011


== Quote from Walter Bright (newshound2 at digitalmars.com)'s article
> Kevin Bealer wrote:
> > You could switch to this:
> >
> > struct {
> >     BigInt numerator;
> >     BigInt denominator;
> > };
> >
> > Bingo -- no compromise.
> It cannot represent irrational numbers accurately.

True but I did mention this a few lines later.

Kevin


More information about the Digitalmars-d mailing list