Lines Matching refs:val
87 * @param val an arbitrary {@code BigInteger}
89 * @return {@code val * factor}
91 static BigInteger multiplyByPositiveInt(BigInteger val, int factor) {
92 BigInt bi = val.getBigInt().copy();
100 * @param val the number to be multiplied
102 * @return {@code val * 10<sup>exp</sup>}
104 static BigInteger multiplyByTenPow(BigInteger val, long exp) {
107 ? multiplyByPositiveInt(val, tenPows[(int)exp])
108 : val.multiply(powerOf10(exp)));
173 * @param val the number to be multiplied
175 * @return {@code val * 5<sup>exp</sup>}
177 static BigInteger multiplyByFivePow(BigInteger val, int exp) {
180 return multiplyByPositiveInt(val, fivePows[exp]);
182 return val.multiply(bigFivePows[exp]);
184 return val.multiply(bigFivePows[1].pow(exp));