Re: OT: Re: code for fun

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aaron Lewis
Date: Sunday, July 18, 2010 - 5:32 am

-----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-----
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
code for fun, Aaron Lewis, (Sun Jul 18, 3:27 am)
Re: code for fun, Firas Kraiem, (Sun Jul 18, 3:56 am)
OT: Re: code for fun, Aaron Lewis, (Sun Jul 18, 4:07 am)
Re: OT: Re: code for fun, Floor Terra, (Sun Jul 18, 5:04 am)
Re: OT: Re: code for fun, Firas Kraiem, (Sun Jul 18, 5:15 am)
Re: OT: Re: code for fun, Aaron Lewis, (Sun Jul 18, 5:32 am)
Re: OT: Re: code for fun, Floor Terra, (Sun Jul 18, 6:46 am)