Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In IEEE double precision n=53. So to represent 16 I can do the following:
The next biggest number from $16=+(.10 \dots 01)_22^5=2^{-1}2^5+2^{-53}2^5=16+2^{-48}$

Now the biggest number from $-16=-16+2^{-49}$, but how to show this formally like i did above for positive $16$ case?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

IEEE double precision numbers store they sign in a separate bit. So, (-16) is the same as (+16) except sign-bit changed. Getting "next" number after (-16) is equivalent to getting "previous" number before (+16) with sign-bit changed.
Next number after (+16) is
$\large+(1.00...01)_2\cdot2^4 = 16\cdot(1+2^{-52}) = 16+2^{-48}$
Previous number before (+16) is
$\large+(1.11...11)_2\cdot2^3 = 16\cdot(1-2^{-53}) = 16-2^{-49}$
Next number after (-16) is
$\large-(1.11...11)_2\cdot2^3 = -16\cdot(1-2^{-53}) = -16+2^{-49}$

share|improve this answer
    
I kind of figured it out already, THANK YOU for the answer. The only thing, everything looks correct but $1$s should be after decimal point, I edited it already :) –  ASROMA Dec 3 '12 at 1:47
    
@ASROMA - No, my original message was correct. Please read Wikipedia and get the correct version back. :-) –  Egor Skriptunoff Dec 3 '12 at 3:11
    
We both were correct since i did not see that your power on 2 was one less than mine :-) –  ASROMA Dec 3 '12 at 3:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.