float equality

Walter Bright newshound2 at digitalmars.com
Sun Feb 20 12:46:32 PST 2011


Kevin Bealer wrote:
> You could switch to this:
> 
> struct {
>     BigInt numerator;
>     BigInt denominator;
> };
> 
> Bingo -- no compromise.

It cannot represent irrational numbers accurately.


More information about the Digitalmars-d mailing list