iphone
asked on
Data Conversion Warning
Hi, There data conversion warning from double to int when compile, is there anyway to solve this?
double a = 100.30;
int i = (int)a;
this is the syntax.
double a = 100.30;
int i = (int)a;
this is the syntax.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
double a = 100.30;
int i = retinterpret_cast<int>(a);