I have defined a doube number d in order to restore the result of the devistion 400/60, but eventhough the result is 6.67 in the varieble d it is always restored the number 6, wich is wrong because the digits 0.67 are missing. What kind of settings i have to do in order to have the right result
Re: division problem
The 400/60 is integer division (both numbers are integers) giving an integer result.
Change one of the numbers to a floating pt number and the result will have fractional parts: 400.0/60 or 400/60.0