BigIntegerオブジェクト
コンポーネント情報 | |
---|---|
version | 8.0.15 |
変更が不可能な、任意精度の整数です。すべての演算は、BigInteger が(Javaのプリミティブ整数型のような) 2値補数表記法で表されたかのように動作します。
詳細については、java の java.math.BigInteger のAPIドキュメントを参照してください。
詳細については、java の java.math.BigInteger のAPIドキュメントを参照してください。
コンストラクタの概要
BigInteger (String val ) BigInteger の10進 String 表現を BigInteger に変換します。 |
メソッドの概要
返却値の型 | メソッド名 |
---|---|
BigInteger | abs () 値がこの BigInteger の絶対値である BigInteger を返します。 |
BigInteger | add (BigInteger val ) 値が (this + val) である BigInteger を返します。 |
Number | compareTo (BigInteger val ) この BigInteger を指定された BigInteger と比較します。 |
Array | divideAndRemainder (BigInteger val ) (this / val) そして (this % val) と続く、2つの BigInteger の配列を返します。 |
BigInteger | divide (BigInteger val ) 値が (this / val) である BigInteger を返します。 |
Boolean | equals (Object x ) この BigInteger と指定された Object が等しいかどうかを比較します。 |
BigInteger | max (BigInteger val ) この BigInteger と val の最大値を返します。 |
BigInteger | min (BigInteger val ) この BigInteger と val の最小値を返します。 |
BigInteger | multiply (BigInteger val ) 値が (this * val) である BigInteger を返します。 |
BigInteger | negate () 値が (-this) である BigInteger を返します。 |
Number | numberValue () この BigInteger を Number に変換します。 |
BigInteger | pow (Number exponent ) 値が (thisexponent) の BigInteger を返します。 |
BigInteger | remainder (BigInteger val ) 値が (this % val) である BigInteger を返します。 |
Number | signum () この BigInteger の符号要素を返します。 |
BigInteger | subtract (BigInteger val ) 値が (this - val) である BigInteger を返します。 |
String | toString () この BigInteger の10進 String 表現を返します。 |
BigInteger | valueOf (Number val ) static値が指定された Number の値と等しい BigInteger を返します。 |
コンストラクタの詳細
BigInteger (String val )
BigInteger の10進 String 表現を BigInteger に変換します。
パラメータ
|
メソッドの詳細
BigInteger abs ()
値がこの BigInteger の絶対値である BigInteger を返します。
返却値
|
BigInteger add (BigInteger val )
値が (this + val) である BigInteger を返します。
パラメータ
返却値
|
Number compareTo (BigInteger val )
この BigInteger を指定された BigInteger と比較します。
パラメータ
返却値
|
Array divideAndRemainder (BigInteger val )
(this / val) そして (this % val) と続く、2つの BigInteger の配列を返します。
パラメータ
返却値
|
BigInteger divide (BigInteger val )
値が (this / val) である BigInteger を返します。
パラメータ
返却値
|
Boolean equals (Object x )
この BigInteger と指定された Object が等しいかどうかを比較します。
パラメータ
返却値
|
BigInteger max (BigInteger val )
この BigInteger と val の最大値を返します。
パラメータ
返却値
|
BigInteger min (BigInteger val )
この BigInteger と val の最小値を返します。
パラメータ
返却値
|
BigInteger multiply (BigInteger val )
値が (this * val) である BigInteger を返します。
パラメータ
返却値
|
BigInteger negate ()
値が (-this) である BigInteger を返します。
返却値
|
Number numberValue ()
この BigInteger を Number に変換します。
この変換により、BigInteger 値の精度に関する情報が失われる可能性があります。
返却値
|
BigInteger pow (Number exponent )
値が (thisexponent) の BigInteger を返します。
パラメータ
返却値
|
BigInteger remainder (BigInteger val )
値が (this % val) である BigInteger を返します。
パラメータ
返却値
|
Number signum ()
この BigInteger の符号要素を返します。
返却値
|
BigInteger subtract (BigInteger val )
値が (this - val) である BigInteger を返します。
パラメータ
返却値
|
String toString ()
この BigInteger の10進 String 表現を返します。
返却値
|
BigInteger valueOf (Number val )
static
値が指定された Number の値と等しい BigInteger を返します。
パラメータ
返却値
|