Division Calculations

This is a discussion on Division Calculations within the C++ Programming forums, part of the General Programming Boards category; Hi guys,
I recently came across an error in my programs. When completing a calculation such as 4 / 3 ...

Division Calculations

Hi guys,

I recently came across an error in my programs. When completing a calculation such as 4 / 3 it automatically returns 1, even if I include it in a double. Please tell me how to get around this problem. It is an essential to my code