From: Eric Hodel Date: 2002-12-12T04:03:25+09:00 Subject: Re: Proper Type for Dollar Amount --UUBKWyapWpFAak7q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mark Probert (probertm@nortelnetworks.com) wrote: > Interestingly, there are a bunch of rational approximations > for irrationals that allow you to do more "serious" math > using scaled integers: >=20 > const ratio error > ------ ----- ----- > pi 355/113 8.5e-8 > sqrt(2) 19601/13860 1.5e-9 > sqrt(3) 18817/10864 1.1e-9 > e 28667/10564 5.5e-9 > c 24559/8192 1.6e-9 Ah, but c is exactly 300,000 kilometers per second*, if you use metric, its not a problem! * in a vacuum --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --UUBKWyapWpFAak7q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE994v6MypVHHlsnwQRAn+hAJwMK5v7QBxJjVrwjyR9jXS3V0ucjgCg1Gbc vZe/eRChZCODPNa0zPfo8fg= =ADUD -----END PGP SIGNATURE----- --UUBKWyapWpFAak7q--