I have the following variable:
decimal resultado = 0.0m;
I need to assign the result of a division to this variable:
resultado = (1 / 2) * (-1);
The result has been 0
, but should be -0.5
. I think I need to do some kind of conversion. Could someone help me?