C
C#3w ago
Jorge1970

Help, I am going crazy with next issue

Please check next image. I get always zero as result, but when I did a debug, get the values and I don't know why I get zero. please help.
No description
2 Replies
Angius
Angius3w ago
If you're trying to do floating point division on integers, you will need to cast one of the operands to a double, not the result If PorcVaio is an integer, cast that to a double And/or instead of dividing it by 100 (an integer) divide it by 100.0 (a double)
Jorge1970
Jorge1970OP3w ago
Solved, thanks a lot.

Did you find this page helpful?