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