E
edward.birch
The follwoing program produces "6" when compiled/run under MSDEV
2005/Windows and
"6" when compiled/run under g++/Linux.
Anyone have any ideas on how to make MSDEV behave the same as Linux.
--
#include <stdio.h>
int main(int argc, char * argv[])
{
double v = 0.6;
printf("%d\n", int(v * 10.0));
return 0;
}
MSDEV 2005/Windows ==> 6
MSDEV 2003/Windows ==> 6
g++/Linux ==> 5
2005/Windows and
"6" when compiled/run under g++/Linux.
Anyone have any ideas on how to make MSDEV behave the same as Linux.
--
#include <stdio.h>
int main(int argc, char * argv[])
{
double v = 0.6;
printf("%d\n", int(v * 10.0));
return 0;
}
MSDEV 2005/Windows ==> 6
MSDEV 2003/Windows ==> 6
g++/Linux ==> 5