Are you talking about bitwise operations?
Tried it, also works
set /a "b=(a^(a>>31))-(a>>31)"
But bitwise operations are not part of the four arithmetic operations
Therefore, it does not meet the requirements of the original poster
Tried it, also works
set /a "b=(a^(a>>31))-(a>>31)"
But bitwise operations are not part of the four arithmetic operations
Therefore, it does not meet the requirements of the original poster
