}
<BUG>public static Number encode(long scalar, double precision) {
return encode(BigInteger.valueOf(scalar), precision);</BUG>
}
<BUG>public static Number encode(double scalar) {
return innerEncode(new BigDecimal(String.valueOf(scalar)), getDoublePrecExponent(scalar));
}
public static Number encode(double scalar, int maxExponent) {
return innerEncode(new BigDecimal(String.valueOf(scalar)),
getExponent(getDoublePrecExponent(scalar), maxExponent));</BUG>
}

}
return new Number(BigInteger.ONE.shiftRight(exponent), exponent);
}
public static Number one() {
return new Number(BigInteger.ONE, 0);
}
