Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert int to double with Diab C/C++

Status
Not open for further replies.

1230

Programmer
Apr 23, 2001
5
FR
i have no error and warning during compile, but when my program is running, there is an error in conversion int to double, like this:

double a=0.0;
int b=1;

a =(double)b; there is error..........
a=(double)b*0.1/0.1 there is error..........


the error should be a compiler option, but i can't find it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top