Re: code for fun

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Firas Kraiem
Date: Sunday, July 18, 2010 - 3:56 am

On 18/07/2010 12:27, Aaron Lewis wrote:

Kinda off-topic for here but whatever...

Assuming 64-bit double, it has a mantissa of 52 bits and an exponent of
11 bits. If the mantissa is all-ones, that will give a significant of
2-2^(-52).  The exponent cannot be all-ones (an all-ones exponent means
infinity or NaN), so the largest exponent is 2^11-2 = 2046, minus bias
(1023), it gives a maximum effective exponent of 1023, so that would
give a value of (2-2^(-52))*2^(1023) = 2^1024 - 2^971, roughly 10^308.

What do you mean by "precision"?

Firas
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)