Math on batch (win)

后端 未结 4 842
你的背包
你的背包 2020-12-15 21:58

I am developing a CMD batch. I want to do some math in it. This formula: (x+1)100:y

So in batch, x = %x%, and y = %y%. I know how to set t

4条回答
  •  無奈伤痛
    2020-12-15 22:42

    • set /a (any arithmatic)
    • set /a 2+2 adding
    • set /a 2-2 subtracting
    • set /a 2*2 multiplying
    • set /a 2/2 deviding
    • set /a 2^2 exponet

    use brackets and parentheses to show the properties of the equations for ex. 2(2+2)=8 Shows distributive property.

提交回复
热议问题