문제

I have a biginteger number, say

BigInteger a=Biginteger.valueOf(50);

Besides the following

BigInteger a=(BigInteger.ZERO).subtract(BigInteger.valueOf(50));

is there another way to get the negative value of my number? Can't seem to find a method.

도움이 되었습니까?

해결책

You're looking for BigInteger's negate() method.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top