< prev index next >

src/java.base/share/classes/java/math/BigInteger.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols

*** 52,62 **** * Additionally, BigInteger provides operations for modular arithmetic, GCD * calculation, primality testing, prime generation, bit manipulation, * and a few other miscellaneous operations. * * <p>Semantics of arithmetic operations exactly mimic those of Java's integer ! * arithmetic operators, as defined in <i>The Java&trade; Language Specification</i>. * For example, division by zero throws an {@code ArithmeticException}, and * division of a negative by a positive yields a negative (or zero) remainder. * * <p>Semantics of shift operations extend those of Java's shift operators * to allow for negative shift distances. A right-shift with a negative --- 52,62 ---- * Additionally, BigInteger provides operations for modular arithmetic, GCD * calculation, primality testing, prime generation, bit manipulation, * and a few other miscellaneous operations. * * <p>Semantics of arithmetic operations exactly mimic those of Java's integer ! * arithmetic operators, as defined in <i>The Java Language Specification</i>. * For example, division by zero throws an {@code ArithmeticException}, and * division of a negative by a positive yields a negative (or zero) remainder. * * <p>Semantics of shift operations extend those of Java's shift operators * to allow for negative shift distances. A right-shift with a negative
*** 4150,4160 **** /** * Converts this BigInteger to an {@code int}. This * conversion is analogous to a * <i>narrowing primitive conversion</i> from {@code long} to * {@code int} as defined in ! * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger is too big to fit in an * {@code int}, only the low-order 32 bits are returned. * Note that this conversion can lose information about the * overall magnitude of the BigInteger value as well as return a * result with the opposite sign. --- 4150,4160 ---- /** * Converts this BigInteger to an {@code int}. This * conversion is analogous to a * <i>narrowing primitive conversion</i> from {@code long} to * {@code int} as defined in ! * <cite>The Java Language Specification</cite>: * if this BigInteger is too big to fit in an * {@code int}, only the low-order 32 bits are returned. * Note that this conversion can lose information about the * overall magnitude of the BigInteger value as well as return a * result with the opposite sign.
*** 4172,4182 **** /** * Converts this BigInteger to a {@code long}. This * conversion is analogous to a * <i>narrowing primitive conversion</i> from {@code long} to * {@code int} as defined in ! * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger is too big to fit in a * {@code long}, only the low-order 64 bits are returned. * Note that this conversion can lose information about the * overall magnitude of the BigInteger value as well as return a * result with the opposite sign. --- 4172,4182 ---- /** * Converts this BigInteger to a {@code long}. This * conversion is analogous to a * <i>narrowing primitive conversion</i> from {@code long} to * {@code int} as defined in ! * <cite>The Java Language Specification</cite>: * if this BigInteger is too big to fit in a * {@code long}, only the low-order 64 bits are returned. * Note that this conversion can lose information about the * overall magnitude of the BigInteger value as well as return a * result with the opposite sign.
*** 4196,4206 **** /** * Converts this BigInteger to a {@code float}. This * conversion is similar to the * <i>narrowing primitive conversion</i> from {@code double} to * {@code float} as defined in ! * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger has too great a magnitude * to represent as a {@code float}, it will be converted to * {@link Float#NEGATIVE_INFINITY} or {@link * Float#POSITIVE_INFINITY} as appropriate. Note that even when * the return value is finite, this conversion can lose --- 4196,4206 ---- /** * Converts this BigInteger to a {@code float}. This * conversion is similar to the * <i>narrowing primitive conversion</i> from {@code double} to * {@code float} as defined in ! * <cite>The Java Language Specification</cite>: * if this BigInteger has too great a magnitude * to represent as a {@code float}, it will be converted to * {@link Float#NEGATIVE_INFINITY} or {@link * Float#POSITIVE_INFINITY} as appropriate. Note that even when * the return value is finite, this conversion can lose
*** 4281,4291 **** /** * Converts this BigInteger to a {@code double}. This * conversion is similar to the * <i>narrowing primitive conversion</i> from {@code double} to * {@code float} as defined in ! * <cite>The Java&trade; Language Specification</cite>: * if this BigInteger has too great a magnitude * to represent as a {@code double}, it will be converted to * {@link Double#NEGATIVE_INFINITY} or {@link * Double#POSITIVE_INFINITY} as appropriate. Note that even when * the return value is finite, this conversion can lose --- 4281,4291 ---- /** * Converts this BigInteger to a {@code double}. This * conversion is similar to the * <i>narrowing primitive conversion</i> from {@code double} to * {@code float} as defined in ! * <cite>The Java Language Specification</cite>: * if this BigInteger has too great a magnitude * to represent as a {@code double}, it will be converted to * {@link Double#NEGATIVE_INFINITY} or {@link * Double#POSITIVE_INFINITY} as appropriate. Note that even when * the return value is finite, this conversion can lose
< prev index next >