0
The following line of code is run trough my current project :
set /a "hp = hp - ((atk*arandom)/((edef*6)/edefbonus))"
And here's what it looks like when you replace the variables by their values :
set /a "hp = 50 - ((2*2)/((1*6)/8))"
The answer to this is 44.666667, which should be rounded up to 45. But instead Batch just tells me "Divide by zero error" when the code runs, both with the version that uses the variables and with the version that uses numbers instead.
I'm really lost for clues. I checked for uneven parenthesis, I checked for unset variables and EnabledDelayedExpansion is set. So what am I doing wrong...?