-----BEGIN PGP SIGNED MESSAGE----- Moin, >>And then, if we have BigFloat, we need a way to specify rounding and >>precision. Otherwise 1/3 eats up all memory or provides limits ;o) > >Er... may I suggest ratio's as a data format? It won't work for sqrt(2) >or PI, but it can easily store 1/3 as two (long) integers. You can >postpone doing integer divisions until you need a result, at which time >you can reorder calculations between * and /, so > > (2/3)*9 > >will return exactly 6. Next version of Math::BigInt (v1.21) will contain my experimental module from last year, called Math::BigFraction which implements exactly this. But as Andy said, we need still precision and rounding. Perhaps even on a per-variable basis. Cheers, Tels PS: Is it not custom to CC: the people on this list in case they do not follow it regulary? I liked that about p5p... - -- perl -MMath::String -e 'print \ print Math::String->from_number("+215960156869840440586892398248"),"\n"' http://bloodgate.com/thief/ Thief - The Dark Project http://bloodgate.com/perl My current Perl projects http://freedomforlinks.de Fight for your right to link. PGP key available on http://bloodgate.com/tels.asc or via email -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: latin1 iQEVAwUBOsToC3cLPEOTuEwVAQFbUAf8C0TahKhbo5pEPu3YIuM4q11DbDk8o5OZ E7O5Odzf4VG5ZA38tgThafMItIB06e63Fkpf1c9Kc0jfz+53mXTDZTrY909AQNkE GlBuXo5hiPMmCQ4zeXKrUPBj9WVmBZpzI0sAIqQo89BblWr1XNjZVAYalRNxAXDA w+4/MBDA0Muxj7CPVebvsFkNfgB+V2RvRSu6BMCPvNcWHjxj14Z+qWsAL57nxfQC A8rvfBoh29is2mdKt6n/l/KwyBCiDvPH5EzhV+V9ABz7i0bQJ1tl4K2rE5lT9L9s k0kqr6CpjVe4PDkLlmIY5OtNdhj70uTgXixgYOss1+syQYm84xKBMQ== =7HDN -----END PGP SIGNATURE-----