Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Function Pin
Roger Broomfield11-Oct-07 3:51
Roger Broomfield11-Oct-07 3:51 
AnswerHence you need... Pin
CPallini11-Oct-07 0:16
mveCPallini11-Oct-07 0:16 
GeneralRe: Hence you need... Pin
Nelek11-Oct-07 0:27
protectorNelek11-Oct-07 0:27 
GeneralRe: Hence you need... Pin
ThatsAlok11-Oct-07 3:03
ThatsAlok11-Oct-07 3:03 
GeneralYou need to forward Pin
CPallini11-Oct-07 3:30
mveCPallini11-Oct-07 3:30 
JokeRe: You need to forward Pin
ThatsAlok11-Oct-07 4:08
ThatsAlok11-Oct-07 4:08 
QuestionHow to call function in webService? Pin
hunkly10-Oct-07 23:41
hunkly10-Oct-07 23:41 
Questionfloat and double data type Pin
shir_k10-Oct-07 23:35
shir_k10-Oct-07 23:35 
Hi,

The value stored in Float and same value when stored in double there is difference in the value Why?
Eg:
void main()
{
CString str;
union
{
float f1;
unsigned long a1;
}un1;
union
{
double d_f1;
unsigned long d_a1;
}d_un1;
float flt;
double d_flt;

un1.a1 = 0;
un1.f1 = 0.0;
un1.a1=0x6fffffff;
flt = un1.f1;


d_un1.d_a1 = 0;
d_un1.d_f1 = 0.0;
d_un1.d_a1=0x6fffffff;
d_flt = d_un1.d_f1;
}
Output:
d_flt 9.2837315805324e-315
flt 1.58456e+029

d_un1.d_f1 9.2837315805324e-315
un1.f1 1.58456e+029

I need the variable to hold value upto 0xffffffff as float cannot hold it i used double but there is a variation in the value if value is <7fffffffff.Is due to IEEE internal representation.HOw to resolve this.








Thanks
AnswerRe: float and double data type Pin
CPallini10-Oct-07 23:44
mveCPallini10-Oct-07 23:44 
GeneralRe: float and double data type Pin
shir_k11-Oct-07 0:00
shir_k11-Oct-07 0:00 
GeneralRe: float and double data type Pin
CPallini11-Oct-07 0:15
mveCPallini11-Oct-07 0:15 
GeneralRe: float and double data type Pin
shir_k11-Oct-07 2:17
shir_k11-Oct-07 2:17 
QuestionChanging dialog color Pin
josip cagalj10-Oct-07 23:21
josip cagalj10-Oct-07 23:21 
AnswerRe: Changing dialog color Pin
Nishad S10-Oct-07 23:26
Nishad S10-Oct-07 23:26 
GeneralRe: Changing dialog color Pin
josip cagalj10-Oct-07 23:47
josip cagalj10-Oct-07 23:47 
GeneralRe: Changing dialog color Pin
Nishad S11-Oct-07 0:28
Nishad S11-Oct-07 0:28 
GeneralRe: Changing dialog color Pin
Matthew Faithfull10-Oct-07 23:34
Matthew Faithfull10-Oct-07 23:34 
AnswerRe: Changing dialog color Pin
Priya_Sundar11-Oct-07 0:03
Priya_Sundar11-Oct-07 0:03 
Questionhow to check programatically if a table exists or not Pin
santhi_malli10-Oct-07 23:19
santhi_malli10-Oct-07 23:19 
AnswerRe: how to check programatically if a table exists or not Pin
ThatsAlok11-Oct-07 3:23
ThatsAlok11-Oct-07 3:23 
QuestionCode Pin
concomarx10-Oct-07 23:09
concomarx10-Oct-07 23:09 
AnswerRe: Code Pin
toxcct10-Oct-07 23:20
toxcct10-Oct-07 23:20 
JokeRe: Code Pin
CPallini10-Oct-07 23:31
mveCPallini10-Oct-07 23:31 
GeneralRe: Code Pin
concomarx10-Oct-07 23:40
concomarx10-Oct-07 23:40 
GeneralRe: Code Pin
CPallini10-Oct-07 23:45
mveCPallini10-Oct-07 23:45 

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.