And naturally I forgot the interesting part of the example;
Pike v7.4 release 13 running Hilfe v3.5 (Incremental Pike Frontend)
sprintf("%.10f", Gmp.mpq(3580,100));
(1) Result: "35.8000000000"
Just cram out as much precision as you want. :-)
/ Johan Sundström (a hugging punishment!)
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!)