Searched refs:exponent (Results 1 - 9 of 9) sorted by relevance
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FpUtils.java | 50 * to to least significant, sign, exponent, and significand. 53 * [sign|exponent| fractional_significand] 62 * (-1)^sign * 2^(exponent)*(1.fractional_significand) 64 * Most finite floating-point numbers are normalized; the exponent 70 * are encoding using a special exponent value. In other words, 73 * implicit from the exponent value. 75 * The exponent field uses a biased representation; if the bits of 76 * the exponent are interpreted as a unsigned integer E, the 77 * exponent represented is E - E_bias where E_bias depends on the 82 * The 32-bit float format has 1 sign bit, 8 exponent bit [all...] |
H A D | FormattedFloatingDecimal.java | 43 private char[] exponent; field in class:FormattedFloatingDecimal 60 this.exponent = null; 87 // the real exponent to be output is actually exp - 1, not exp 104 // returns the exponent after rounding has been done by applyPrecision 114 return exponent; 161 * Fills mantissa and exponent char arrays for compatible format. 232 exponent = create(isNegExp,1); 233 exponent[expStartIntex] = (char) (e + '0'); 235 exponent = create(isNegExp,2); 236 exponent[expStartInte [all...] |
H A D | FloatingDecimal.java | 45 static final long EXP_ONE = ((long)DoubleConsts.EXP_BIAS)<<EXP_SHIFT; // exponent of 1.0 143 * Retrieves the decimal exponent most closely corresponding to this value. 144 * @return The decimal exponent. 216 throw new IllegalArgumentException("Exceptional value does not have an exponent"); 809 * Estimate decimal exponent. (If it is small-ish, 823 int exponent = (int)((dBits & DoubleConsts.EXP_BIT_MASK) >> EXP_SHIFT) - DoubleConsts.EXP_BIAS; 825 if(exponent>=0 && exponent<52) { // hot path 826 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; 827 int r = (int)(( (dBits&DoubleConsts.SIGNIF_BIT_MASK) | FRACT_HOB )>>(EXP_SHIFT-exponent)); [all...] |
/libcore/luni/src/main/java/java/math/ |
H A D | Conversion.java | 30 * Holds the maximal exponent for each radix, so that radix<sup>digitFitInInt[radix]</sup> 239 int exponent = resLengthInChars - currentChar - scale - 1; 247 if ((scale > 0) && (exponent >= -6)) { 248 if (exponent >= 0) { 250 int insertPoint = currentChar + exponent; 262 for (int j = 2; j < -exponent + 1; j++) { 289 if (exponent > 0) { 292 result1.append(Integer.toString(exponent)); 342 long exponent = (long)resLengthInChars - (long)currentChar - scale - 1L; 349 if (scale > 0 && exponent > [all...] |
H A D | BigDecimal.java | 304 // Accumulating all digits until a possible exponent 322 // An exponent was found 470 // Extracting the exponent, note that the bias is 1023 2210 long exponent = -(long)scale + end - begin; 2214 if ((scale > 0) && (exponent >= -6)) { 2215 if (exponent >= 0) { 2219 result.insert(begin + 1, CH_ZEROS, 0, -(int)exponent - 1); 2227 if (exponent > 0) { 2230 result.insert(++end, Long.toString(exponent)); 2242 * scientific notation except that the exponent i [all...] |
H A D | BigInteger.java | 977 * pow(this, exponent) mod modulus}. The modulus must be positive. The 979 * If the exponent is negative, then 980 * {@code pow(this.modInverse(modulus), -exponent) mod modulus} is computed. 984 * @throws NullPointerException if {@code modulus == null} or {@code exponent == null}. 985 * @throws ArithmeticException if {@code modulus < 0} or if {@code exponent < 0} and 988 public BigInteger modPow(BigInteger exponent, BigInteger modulus) { argument 992 int exponentSignum = exponent.signum(); 997 return new BigInteger(BigInt.modExp(base.getBigInt(), exponent.getBigInt(), modulus.getBigInt()));
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | StrictMath.java | 211 * @param a the exponent to raise <i>e</i> to. 374 int exponent = Math.getExponent(a); 376 if (exponent < 0) { 384 } else if (exponent >= 52) { 392 assert exponent >= 0 && exponent <= 51; 395 long mask = DoubleConsts.SIGNIF_BIT_MASK >> exponent; 629 * @param b the exponent. 1337 * @param x the exponent to raise <i>e</i> to in the computation of 1407 * Returns the unbiased exponent use [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Scanner.java | 484 String exponent = "([eE][+-]?"+digit+"+)?"; 495 positiveSuffix + exponent + ")"; 497 negativeSuffix + exponent + ")"; 498 String decimal = "(([-+]?" + decimalNumeral + exponent + ")|"+
|
H A D | Formatter.java | 347 * a significand and an exponent. This conversion is <b>not</b> supported 846 * exponent (as appropriate for the data type), the following transformation 1165 * <p> If <i>m</i> is positive-zero or negative-zero, then the exponent 1181 * java.text.DecimalFormatSymbols#getExponentSeparator exponent separator} 1182 * (e.g. {@code 'e'}), followed by the sign of the exponent, followed 1204 * <td> The upper-case variant of {@code 'e'}. The exponent symbol 1206 * java.text.DecimalFormatSymbols#getExponentSeparator exponent separator} 1297 * exponent fields. The significand is represented by the characters 1299 * of the significand as a fraction. The exponent is represented by 1301 * unbiased exponent a 3813 public char[] exponent() { method in class:Formatter.FormatSpecifier.BigDecimalLayout [all...] |
Completed in 2415 milliseconds