Java-math-biginteger-negate
提供:Dev Guides
Java.math.BigInteger.negate()メソッド
説明
- java.math.BigInteger.negate()*は、値が(-this)のBigIntegerを返します。
宣言
以下は* java.math.BigInteger.negate()*メソッドの宣言です。
パラメーター
NA
戻り値
このメソッドは、値が-thisであるBigIntegerオブジェクトを返します。
例外
NA
例
次の例は、math.BigInteger.negate()メソッドの使用法を示しています。
上記のプログラムをコンパイルして実行すると、次の結果が生成されます-