How to return/use VERY LARGE numbers?
This is in VC++ 6.0
THe problem i'm having is that it's screwing up wiht extremely large numbers.
e.g., cout << 123546*654321 returns a VERY wrong number.
So my next thought was to go like
float x = 123456;
float y = 654321;
double z = x*y;
cout << z;
Okay, now I run into a new problem - C++ when it outputs it is rounding the number.....I need the UNROUNDED number (i.e., not, for example, 8.07799*e^20, but 8077985334534........)
Can anybody offer some insight?
edit: the reason I say I need the unrounded number is because if I take that number and pass it to another function, somehow it's warped in memory from the rounding and is displayed with 99% accuracy.
e.g., it will display 12345678 instead of 12345690...althogh a difference on only 12 on the last 2 digist, for my line of work this is a HUGE error.