java.math.BigDecimal.setUnscaledValue()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(202)

本文整理了Java中java.math.BigDecimal.setUnscaledValue()方法的一些代码示例,展示了BigDecimal.setUnscaledValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BigDecimal.setUnscaledValue()方法的具体详情如下:
包路径:java.math.BigDecimal
类名称:BigDecimal
方法名:setUnscaledValue

BigDecimal.setUnscaledValue介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: robovm/robovm

bitLength = bitLength(smallValue);
} else {
  setUnscaledValue(new BigInteger(unscaledBuffer.toString()));

代码示例来源:origin: robovm/robovm

bitLength = bitLength(smallValue);
} else {
  setUnscaledValue(Multiplication.multiplyByFivePow(BigInteger.valueOf(mantissa), scale));

代码示例来源:origin: robovm/robovm

setUnscaledValue(integerAndFraction[0]);

代码示例来源:origin: robovm/robovm

integralValue.setUnscaledValue(strippedBI);
return integralValue;

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: ibinti/bugvm

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Constructs a new {@code BigDecimal} instance from a given unscaled value
 * {@code unscaledVal} and a given scale. The value of this instance is
 * {@code unscaledVal * 10<sup>-scale</sup>}).
 *
 * @throws NullPointerException
 *             if {@code unscaledVal == null}.
 */
public BigDecimal(BigInteger unscaledVal, int scale) {
  if (unscaledVal == null) {
    throw new NullPointerException("unscaledVal == null");
  }
  this.scale = scale;
  setUnscaledValue(unscaledVal);
}

代码示例来源:origin: MobiVM/robovm

bitLength = bitLength(smallValue);
} else {
  setUnscaledValue(Multiplication.multiplyByFivePow(BigInteger.valueOf(mantissa), scale));

代码示例来源:origin: com.gluonhq/robovm-rt

bitLength = bitLength(smallValue);
} else {
  setUnscaledValue(Multiplication.multiplyByFivePow(BigInteger.valueOf(mantissa), scale));

代码示例来源:origin: ibinti/bugvm

bitLength = bitLength(smallValue);
} else {
  setUnscaledValue(Multiplication.multiplyByFivePow(BigInteger.valueOf(mantissa), scale));

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

setUnscaledValue(integerAndFraction[0]);

代码示例来源:origin: com.bugvm/bugvm-rt

setUnscaledValue(integerAndFraction[0]);

代码示例来源:origin: MobiVM/robovm

setUnscaledValue(integerAndFraction[0]);

代码示例来源:origin: ibinti/bugvm

setUnscaledValue(integerAndFraction[0]);

代码示例来源:origin: com.gluonhq/robovm-rt

setUnscaledValue(integerAndFraction[0]);

代码示例来源:origin: FlexoVM/flexovm

setUnscaledValue(integerAndFraction[0]);

相关文章