How do I convert scientific notation to regular int For example: 1.23E2 I would like to convert it to 123
Thanks.
You can just cast it to int as:
int
double d = 1.23E2; // or float d = 1.23E2f; int i = (int)d; // i is now 123