-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/18/2010 08:04 PM, Floor Terra wrote:
See:
http://en.wikipedia.org/wiki/Arithmetic_precision
Sorry , they're all signed.
Come on , just for fun , someone asks me if i could print out the
maximum number that can be stored in a double type , and the *precision*
of a double type.
For the first , maybe with some bit operations , no good idea from me.
And the second , well i tried to divide 2 by 3 , see when i reaches 7 (
should be 0.66....7 ) ,
may not a clever way.
- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxC9EsACgkQvf41sEptMqD8CACfVFw2rSxQHBs1u8hLgltLIEr3
heUAniQgV+JEyy/WLr+IsV3mtIGUznM+
=xwd7
-----END PGP SIGNATURE-----