Click here to Skip to main content
16,011,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IOCP And WSANOBUFS Error Pin
Polity4h2-Jan-07 7:17
Polity4h2-Jan-07 7:17 
Questionconsole app in VS2003 Pin
swjam1-Jan-07 2:01
swjam1-Jan-07 2:01 
AnswerRe: console app in VS2003 Pin
Jonathan [Darka]1-Jan-07 2:16
professionalJonathan [Darka]1-Jan-07 2:16 
GeneralRe: console app in VS2003 Pin
swjam1-Jan-07 2:22
swjam1-Jan-07 2:22 
AnswerRe: console app in VS2003 Pin
Michael Dunn1-Jan-07 10:00
sitebuilderMichael Dunn1-Jan-07 10:00 
GeneralRe: console app in VS2003 Pin
swjam1-Jan-07 15:18
swjam1-Jan-07 15:18 
Questiondouble casting Pin
Hadi Dayvary1-Jan-07 1:43
professionalHadi Dayvary1-Jan-07 1:43 
AnswerRe: double casting Pin
Gary R. Wheeler1-Jan-07 4:33
Gary R. Wheeler1-Jan-07 4:33 
In computers, real values are only approximations; there are only a limited number of bits used to represent fractional values. You need to keep that in mind when dealing with float and double type values. The double type includes a larger number of bits (64 in the Windows world) than the float type (32).

When you do the conversion from one to the other via the (double) cast operator, those extra bits come into play. In a float value, 3.456 may have a string representation of 3.456000. A double version of that value adds additional significant digits, which results in the 3.456000089454 that you are seeing.


Software Zen: delete this;

Question"friend" class question Pin
eli150219791-Jan-07 1:04
eli150219791-Jan-07 1:04 
AnswerRe: "friend" class question Pin
Polity4h1-Jan-07 4:10
Polity4h1-Jan-07 4:10 
QuestionData Exchange Pin
Shouvik Das1-Jan-07 0:16
Shouvik Das1-Jan-07 0:16 
AnswerRe: Data Exchange Pin
PJ Arends1-Jan-07 7:48
professionalPJ Arends1-Jan-07 7:48 
GeneralRe: Data Exchange Pin
Shouvik Das1-Jan-07 16:42
Shouvik Das1-Jan-07 16:42 
GeneralRe: Data Exchange Pin
Cristian Amarie2-Jan-07 3:58
Cristian Amarie2-Jan-07 3:58 
GeneralRe: Data Exchange Pin
Shouvik Das2-Jan-07 17:49
Shouvik Das2-Jan-07 17:49 
GeneralRe: Data Exchange Pin
Cristian Amarie2-Jan-07 20:42
Cristian Amarie2-Jan-07 20:42 
GeneralRe: Data Exchange Pin
Shouvik Das1-Jan-07 19:06
Shouvik Das1-Jan-07 19:06 
GeneralRe: Data Exchange Pin
PJ Arends2-Jan-07 5:39
professionalPJ Arends2-Jan-07 5:39 
GeneralRe: Data Exchange Pin
Shouvik Das2-Jan-07 17:51
Shouvik Das2-Jan-07 17:51 
GeneralRe: Data Exchange Pin
PJ Arends2-Jan-07 21:10
professionalPJ Arends2-Jan-07 21:10 
GeneralRe: Data Exchange Pin
Shouvik Das2-Jan-07 3:59
Shouvik Das2-Jan-07 3:59 
GeneralRe: Data Exchange Pin
Cristian Amarie3-Jan-07 8:12
Cristian Amarie3-Jan-07 8:12 
QuestionSending mails in VC++ Pin
Syamlal S Nair1-Jan-07 0:09
Syamlal S Nair1-Jan-07 0:09 
AnswerRe: Sending mails in VC++ Pin
PJ Arends1-Jan-07 8:01
professionalPJ Arends1-Jan-07 8:01 
GeneralRe: Sending mails in VC++ Pin
Syamlal S Nair1-Jan-07 17:37
Syamlal S Nair1-Jan-07 17:37 

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.