C++: unexpected outcome from division of integers, any idea why?
Without doubt all. We are using this code::blocks IDE having mingw. ok the issue here is actually: say u create this( IOstream & an std of course): cout<<1/10.0; you’ll naturally receive 0.ONE right ok in order that is totally fine. but what if u do such as this instead: cout.precision(30); …