Doing the computation in cents would be one approach, or if you can tolerate float in the first place, perhaps double will suffice.
Doing the computation in cents would be one approach, or if you can tolerate float in the first place, perhaps double will suffice.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)