/** * Returns this {@code BigInteger} as a double. If {@code this} is too big * to be represented as a double, then {@code Double.POSITIVE_INFINITY} or * {@code Double.NEGATIVE_INFINITY} is returned. Note that not all integers * in the range {@code [-Double.MAX_VALUE, Double.MAX_VALUE]} can be exactly * represented as a double. */ @Override public double doubleValue() { return Conversion.bigInteger2Double(this); }
/** * Returns a string containing a string representation of this {@code * BigInteger} with base radix. If {@code radix < Character.MIN_RADIX} or * {@code radix > Character.MAX_RADIX} then a decimal representation is * returned. The characters of the string representation are generated with * method {@code Character.forDigit}. * * @param radix base to be used for the string representation. */ public String toString(int radix) { if (radix == 10) { return getBigInt().decString(); } else { prepareJavaRepresentation(); return Conversion.bigInteger2String(this, radix); } }
long temp1 = (result11 << 32) + (temp[i1] & 0xFFFFFFFFL); long res = divideLongByBillion(temp1); temp[i1] = (int) res; result11 = (int) (res >> 32);
toStringImage = Conversion.toDecimalScaledString(smallValue,scale); return toStringImage;
toStringImage = Conversion.toDecimalScaledString(smallValue,scale); return toStringImage;
/** * Returns this {@code BigInteger} as a double. If {@code this} is too big * to be represented as a double, then {@code Double.POSITIVE_INFINITY} or * {@code Double.NEGATIVE_INFINITY} is returned. Note that not all integers * in the range {@code [-Double.MAX_VALUE, Double.MAX_VALUE]} can be exactly * represented as a double. */ @Override public double doubleValue() { return Conversion.bigInteger2Double(this); }
/** * Returns a string containing a string representation of this {@code * BigInteger} with base radix. If {@code radix < Character.MIN_RADIX} or * {@code radix > Character.MAX_RADIX} then a decimal representation is * returned. The characters of the string representation are generated with * method {@code Character.forDigit}. * * @param radix base to be used for the string representation. */ public String toString(int radix) { if (radix == 10) { return getBigInt().decString(); } else { prepareJavaRepresentation(); return Conversion.bigInteger2String(this, radix); } }
toStringImage = Conversion.toDecimalScaledString(smallValue,scale); return toStringImage;
long temp1 = (result11 << 32) + (temp[i1] & 0xFFFFFFFFL); long res = divideLongByBillion(temp1); temp[i1] = (int) res; result11 = (int) (res >> 32);
/** * Returns this {@code BigInteger} as a double. If {@code this} is too big * to be represented as a double, then {@code Double.POSITIVE_INFINITY} or * {@code Double.NEGATIVE_INFINITY} is returned. Note that not all integers * in the range {@code [-Double.MAX_VALUE, Double.MAX_VALUE]} can be exactly * represented as a double. */ @Override public double doubleValue() { return Conversion.bigInteger2Double(this); }
/** * Returns a string containing a string representation of this {@code * BigInteger} with base radix. If {@code radix < Character.MIN_RADIX} or * {@code radix > Character.MAX_RADIX} then a decimal representation is * returned. The characters of the string representation are generated with * method {@code Character.forDigit}. * * @param radix base to be used for the string representation. */ public String toString(int radix) { if (radix == 10) { return getBigInt().decString(); } else { prepareJavaRepresentation(); return Conversion.bigInteger2String(this, radix); } }
toStringImage = Conversion.toDecimalScaledString(smallValue,scale); return toStringImage;
long temp1 = (result11 << 32) + (temp[i1] & 0xFFFFFFFFL); long res = divideLongByBillion(temp1); temp[i1] = (int) res; result11 = (int) (res >> 32);
/** * Returns this {@code BigInteger} as a double. If {@code this} is too big * to be represented as a double, then {@code Double.POSITIVE_INFINITY} or * {@code Double.NEGATIVE_INFINITY} is returned. Note that not all integers * in the range {@code [-Double.MAX_VALUE, Double.MAX_VALUE]} can be exactly * represented as a double. */ @Override public double doubleValue() { return Conversion.bigInteger2Double(this); }
/** * Returns a string containing a string representation of this {@code * BigInteger} with base radix. If {@code radix < Character.MIN_RADIX} or * {@code radix > Character.MAX_RADIX} then a decimal representation is * returned. The characters of the string representation are generated with * method {@code Character.forDigit}. * * @param radix base to be used for the string representation. */ public String toString(int radix) { if (radix == 10) { return getBigInt().decString(); } else { prepareJavaRepresentation(); return Conversion.bigInteger2String(this, radix); } }
toStringImage = Conversion.toDecimalScaledString(smallValue,scale); return toStringImage;
long temp1 = (result11 << 32) + (temp[i1] & 0xFFFFFFFFL); long res = divideLongByBillion(temp1); temp[i1] = (int) res; result11 = (int) (res >> 32);
/** * Returns this {@code BigInteger} as a double. If {@code this} is too big * to be represented as a double, then {@code Double.POSITIVE_INFINITY} or * {@code Double.NEGATIVE_INFINITY} is returned. Note that not all integers * in the range {@code [-Double.MAX_VALUE, Double.MAX_VALUE]} can be exactly * represented as a double. */ @Override public double doubleValue() { return Conversion.bigInteger2Double(this); }
/** * Returns a string containing a string representation of this {@code * BigInteger} with base radix. If {@code radix < Character.MIN_RADIX} or * {@code radix > Character.MAX_RADIX} then a decimal representation is * returned. The characters of the string representation are generated with * method {@code Character.forDigit}. * * @param radix base to be used for the string representation. */ public String toString(int radix) { if (radix == 10) { return getBigInt().decString(); } else { prepareJavaRepresentation(); return Conversion.bigInteger2String(this, radix); } }
toStringImage = Conversion.toDecimalScaledString(smallValue,scale); return toStringImage;