Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: executing code before WM_DISPLAYCHANGE ? Pin
Nishad S17-Mar-09 20:01
Nishad S17-Mar-09 20:01 
GeneralRe: executing code before WM_DISPLAYCHANGE ? Pin
rognorak18-Mar-09 3:38
rognorak18-Mar-09 3:38 
GeneralRe: executing code before WM_DISPLAYCHANGE ? Pin
Nishad S18-Mar-09 4:19
Nishad S18-Mar-09 4:19 
Questionconverting from binary number representation to floating-point representation Pin
steve_o17-Mar-09 9:50
steve_o17-Mar-09 9:50 
AnswerRe: converting from binary number representation to floating-point representation Pin
CPallini17-Mar-09 10:09
mveCPallini17-Mar-09 10:09 
GeneralRe: converting from binary number representation to floating-point representation [modified] Pin
steve_o17-Mar-09 11:41
steve_o17-Mar-09 11:41 
GeneralRe: converting from binary number representation to floating-point representation Pin
CPallini17-Mar-09 11:55
mveCPallini17-Mar-09 11:55 
GeneralRe: converting from binary number representation to floating-point representation Pin
Stuart Dootson17-Mar-09 13:36
professionalStuart Dootson17-Mar-09 13:36 
Which bits are which? Is there a leading implied '1' bit on the significand like IEEE754 has?

With your spec, I'd interpret 10001000 as sign = 1 (is that + or -?), exponent = 000 (decodes to -3), significand = 1000. Now...what's the most significant bit of the significand represent? 2^-1? 2^0?

But is that the way the bits are distributed within the byte?

You need a bit more detail in your specification of floating point numbers before you can decode a byte to floating point.

If 10001000 == -0.125, as in your first message, I'd say sign=1 implies negative and that the significand has an implied binary point after the first bit. That would mean your byte decodes as:


1negative
000exponent = -3
1significand = 1.0


So, you have - 1.0 x 2^-3, which is -0.125. Does that sound right?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: converting from binary number representation to floating-point representation [modified] Pin
steve_o17-Mar-09 17:07
steve_o17-Mar-09 17:07 
QuestionRe: converting from binary number representation to floating-point representation Pin
CPallini17-Mar-09 22:42
mveCPallini17-Mar-09 22:42 
GeneralRe: converting from binary number representation to floating-point representation Pin
Stuart Dootson17-Mar-09 23:12
professionalStuart Dootson17-Mar-09 23:12 
GeneralRe: converting from binary number representation to floating-point representation Pin
steve_o18-Mar-09 11:08
steve_o18-Mar-09 11:08 
GeneralRe: converting from binary number representation to floating-point representation Pin
Stuart Dootson18-Mar-09 14:11
professionalStuart Dootson18-Mar-09 14:11 
QuestionChange Image in Excel Picture Object Pin
Sister Ray17-Mar-09 7:54
Sister Ray17-Mar-09 7:54 
QuestionWM_WINDOWPOSCHANING?? Pin
sam_psycho17-Mar-09 6:15
sam_psycho17-Mar-09 6:15 
AnswerRe: WM_WINDOWPOSCHANING?? Pin
Akt_4_U17-Mar-09 6:45
Akt_4_U17-Mar-09 6:45 
GeneralRe: WM_WINDOWPOSCHANING?? Pin
sam_psycho17-Mar-09 6:59
sam_psycho17-Mar-09 6:59 
GeneralRe: WM_WINDOWPOSCHANING?? Pin
David Crow17-Mar-09 9:04
David Crow17-Mar-09 9:04 
Questionwindows environment Pin
anassamar17-Mar-09 6:06
anassamar17-Mar-09 6:06 
AnswerRe: windows environment Pin
Code-o-mat17-Mar-09 6:13
Code-o-mat17-Mar-09 6:13 
QuestionRe: windows environment Pin
David Crow17-Mar-09 6:40
David Crow17-Mar-09 6:40 
AnswerRe: windows environment Pin
anassamar18-Mar-09 3:21
anassamar18-Mar-09 3:21 
GeneralRe: windows environment Pin
David Crow18-Mar-09 3:23
David Crow18-Mar-09 3:23 
AnswerRe: windows environment Pin
bulg17-Mar-09 6:58
bulg17-Mar-09 6:58 
QuestionUpdate CListCtrl Pin
durban217-Mar-09 4:17
durban217-Mar-09 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.