The key is in the data types of the variables.
The value in the variable "divided" will be 2 because of its data type which is int.
You can confirm this by adding this line:
...
Type: Posts; User: User2009
The key is in the data types of the variables.
The value in the variable "divided" will be 2 because of its data type which is int.
You can confirm this by adding this line:
...
I'm assuming the "totally different" answer you're getting on a calculator is zero.
If that is the case then the reason is in the type of the variables... particularly the variable "divided".
...