I have a few Pi generators around, pick one:
http://fredrik.hubbe.net/hacks/pi.pike (small and easy to read) http://fredrik.hubbe.net/hacks/pi2.pike (more optimized) http://fredrik.hubbe.net/hacks/pi3.pike (complicated, very fast) http://fredrik.hubbe.net/hacks/pi4.pike (translated from a signature)
/ Fredrik (Naranek) Hubinette (Real Build Master)
Previous text:
2003-02-25 11:25: Subject: Re: Do we have a floatingpoint bug?
You don't happen to have a Pi-generating algorithm around? :)
I suppose Gmp.mpf("3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273",32*256,10); will give you something close to Pi. However, still note that sprintf %f and cast to string is broken for mpf, so I guess you'll have to do something else (cast to float?).
/ Mirar