Think you need to show us your code, as - with the info provided so far - c certainly ought to have decimals. And does here. This simple program shows the correct result:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.