OT: Re: code for fun

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/18/2010 06:56 PM, Firas Kraiem wrote:

Yeah , i'll put a OT here.


Yep , right , but how you *get* it by a beautiful code  , that could be
really interesting.

I mean , with a small code , c or c++ , printing the size out.


Kinda of significance digit. For example:
 A number `12.340' , and if say it has 2 digits' precision , then we
consider the `0' is not accurate , while `.34' is accurate.

So for a number stored in a double type , how accurate can it be ? (or
maybe how many bits in the fixed-point part is accurate)

Doesn't matter if it's unsigned or signed , some ideas are cool enough.

Still , use a small part of code , c or c++ , i'm just curious how to
make it happen.



- -- 
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/

iEYEARECAAYFAkxC4IkACgkQvf41sEptMqBN3wCeNNWj/cs9b1SB4hXwxqnJQrR4
gxsAoLKTzixeHSQzWHAeKTzgp6WDPn3I
=McSS
-----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)