Thanks for the correction Z.
Type: Posts; User: curmudgeon
Thanks for the correction Z.
You're doing int division which always returns an int (truncated to the nearest int). If you want a double result, you have to use at least one double in your statement:
double result = 9.0 /...