Currently browsing tag

Decimal Places

C++ Division result WITH decimal places?

Attempting to program around C++ plus can’t for the life with me get 4/3 to be able to equal everything but YOU. I’ve tried out float in addition to double and in some cases fmod nonetheless I can’t understand it to do the job. Every suggestions This works #include #include …