If both arguments are ints then integer math is used. Change one to a float or double and try again, or force one to be promoted to float with a cast like this:
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.