Are you sure you don't want Gmp.mpf? ^ | > Gmp.mpf(47,1000)+(1e-99)==Gmp.mpf(47); | Result: 0 | > Gmp.mpf(47,10)+(1e-99)==Gmp.mpf(47); | Result: 1
Second argument is precision.
/ Mirar
Previous text:
2003-02-25 10:09: Subject: Re: Do we have a floatingpoint bug?
Why do the work all over again when there is Gmp.mpq? :-)
Pike v7.4 release 13 running Hilfe v3.5 (Incremental Pike Frontend)
Gmp.mpq(3580,100);
(1) Result: 179/5
(float)_;
(2) Result: 35.799999
/ Johan Sundström (a hugging punishment!)