Daniele Barell wrote:Hi all,
This is my first post in the ranch and hope it's the right place to do it.
Here's the strange behavior I would ask for:
the output expected is 0.02
the real output is 0.0!
Why is that?
Your code can rewrite like this:
division between 2 to 100 (2/100) equals to 0 because the result of that division is an integer.
After division, casting the result of division is performed (double(0))
And the result is : 0.0