Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ STL Question: Using Maps Pin
Christian Graus26-Apr-06 21:02
protectorChristian Graus26-Apr-06 21:02 
GeneralRe: C++ STL Question: Using Maps Pin
chasetoys26-Apr-06 18:30
chasetoys26-Apr-06 18:30 
GeneralRe: C++ STL Question: Using Maps Pin
Stephen Hewitt26-Apr-06 20:04
Stephen Hewitt26-Apr-06 20:04 
QuestionDouble Limit Pin
Stan the man26-Apr-06 17:31
Stan the man26-Apr-06 17:31 
AnswerRe: Double Limit Pin
Stephen Hewitt26-Apr-06 18:10
Stephen Hewitt26-Apr-06 18:10 
GeneralRe: Double Limit Pin
Stan the man27-Apr-06 4:23
Stan the man27-Apr-06 4:23 
GeneralRe: Double Limit Pin
Stephen Hewitt27-Apr-06 13:50
Stephen Hewitt27-Apr-06 13:50 
GeneralRe: Double Limit Pin
Rilhas29-Apr-06 14:12
Rilhas29-Apr-06 14:12 
For strict ANSI you should only use <limits.h> and assume the the most negative double representable is -DBL_MAX (the negative of DBL_MAX). This will result in -1.7976931348623158e+308, which is, in fact the most negative number that can be represented.

This assumption is reasonable since the sign bit can always be used to represent any negative form of any positive number and vice-versa.

Note, however, that the "resolution" is only of about 15 digits. This means that 10e20 + 1.0 will result in 10e20. And you can keep adding 1.0 and the result will never change from 10e20.

So, it is important to note the difference between dynamic range (308 exponent) and resolution (about 15 decimal digits).


Rilhas
QuestionHow to convert correctly? Pin
M_Nuaimi26-Apr-06 15:35
M_Nuaimi26-Apr-06 15:35 
AnswerRe: How to convert correctly? Pin
Nibu babu thomas26-Apr-06 16:59
Nibu babu thomas26-Apr-06 16:59 
GeneralRe: How to convert correctly? Pin
Stephen Hewitt26-Apr-06 17:29
Stephen Hewitt26-Apr-06 17:29 
GeneralRe: How to convert correctly? Pin
Nibu babu thomas26-Apr-06 17:41
Nibu babu thomas26-Apr-06 17:41 
GeneralRe: How to convert correctly? Pin
Stephen Hewitt26-Apr-06 17:48
Stephen Hewitt26-Apr-06 17:48 
GeneralRe: How to convert correctly? Pin
Nibu babu thomas26-Apr-06 17:57
Nibu babu thomas26-Apr-06 17:57 
GeneralRe: How to convert correctly? Pin
Ryan Binns26-Apr-06 18:09
Ryan Binns26-Apr-06 18:09 
AnswerRe: How to convert correctly? Pin
Ryan Binns26-Apr-06 18:23
Ryan Binns26-Apr-06 18:23 
AnswerA little different !!! Pin
M_Nuaimi27-Apr-06 14:30
M_Nuaimi27-Apr-06 14:30 
GeneralRe: A little different !!! Pin
Ryan Binns27-Apr-06 19:25
Ryan Binns27-Apr-06 19:25 
QuestionAbout MDI step debug in vs2003 Pin
zhoucheng26-Apr-06 15:04
zhoucheng26-Apr-06 15:04 
AnswerRe: About MDI step debug in vs2003 Pin
Ryan Binns26-Apr-06 16:16
Ryan Binns26-Apr-06 16:16 
GeneralRe: About MDI step debug in vs2003 Pin
zhoucheng26-Apr-06 20:20
zhoucheng26-Apr-06 20:20 
QuestionNeed a class to display normal text and hyperlinks Pin
Defenestration26-Apr-06 13:30
Defenestration26-Apr-06 13:30 
AnswerRe: Need a class to display normal text and hyperlinks Pin
Nibu babu thomas26-Apr-06 17:16
Nibu babu thomas26-Apr-06 17:16 
QuestionHaving some problems, and it may be a pointer issure Pin
kuroiryu26-Apr-06 13:04
kuroiryu26-Apr-06 13:04 
AnswerRe: Having some problems, and it may be a pointer issure Pin
ankita patel26-Apr-06 13:39
ankita patel26-Apr-06 13:39 

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.