• If you need to represent fixed point Numbers, such as dollars and cents, use BigDecimal instead.

    如果需要表示定点(譬如,几美元几美分),则使用BigDecimal

    youdao

  • Because BigDecimal objects are immutable, each of these methods produces a new BigDecimal object.

    由于BigDecimal对象不可变的,这些方法中的一个都会产生新的BigDecimal对象

    youdao

  • For this reason, BigDecimal gives you explicit control over rounding when performing division operations.

    出于这个原因进行除法运算时,BigDecimal可以显式地控制入。

    youdao

  • If you are looking to represent exact quantities such as monetary amounts, BigDecimal is well-suited to the task.

    如果正在寻找一种能精确表示货币量这样的数值,则BigDecimal可以很好地胜任该任务。

    youdao

  • In Listing 10, the quantity starts the method call, which moves through Integer, then BigDecimal, finally returning an Ingredient.

    清单10中,数量开始方法调用,开始Integer然后BigDecimal最后返回Ingredient

    youdao

  • Conversion from BigDecimal objects into Float Numbers had a problem which enables attackers to effectively cause segmentation faults.

    BigDecimal对象转换float时候导致一个问题这个问题使得攻击者能够很容易得到段错误

    youdao

  • Of course, if you really do need the extra precision, then you'll need to pick a data type with more precision, such as a double or a BigDecimal.

    当然如果一定需要额外的精度可以选择具有高精度数据类型比如doubleBigDecimal

    youdao

  • You should be careful with the BigDecimal (double) constructor because it can allow rounding errors to sneak into your calculations before you know it.

    小心使用BigDecimal (double)构造函数因为如果不了解它,会在计算过程产生舍入误差

    youdao

  • BigDecimal is a standard class, with no special support in the compiler, to represent arbitrary-precision decimal Numbers and perform arithmetic on them.

    BigDecimal标准编译器不需要特殊支持,它可以表示任意精度的小数它们进行计算

    youdao

  • Improper use of the BigDecimal(double) constructor can show up as strange-seeming exceptions in JDBC drivers when passed to the JDBC setBigDecimal() method.

    如果使用BigDecimal(double)构造函数恰当传递给JDBCsetBigDecimal()方法,会造成似乎很奇怪的 JDBC 驱动程序中的异常

    youdao

  • Two BigDecimal values that represent the same number, but have different scale values (for instance, 100.00 and 100.000) will not be considered equal by the equals() method.

    equals() 方法认为两个表示同一个数换算不同例如, 100.00 100.000 )BigDecimal相等的。

    youdao

  • As a result, BigDecimal is not well-suited for intensive numeric calculation because of the object creation overhead, but it is designed for representing exact decimal Numbers.

    因此因为创建对象开销BigDecimal不适合于大量的数学计算设计的目的用来精确地表示小数。

    youdao

  • Internally, BigDecimal is represented as an arbitrary-precision unscaled value and a scale factor, which represents how many places to move the decimal point left to obtain the scaled value.

    在内部,可以用任意精度任何范围的一个换算因子表示BigDecimal,换算因子表示小数点多少位,从而得到所期望范围内的值。

    youdao

  • Internally, BigDecimal is represented as an arbitrary-precision unscaled value and a scale factor, which represents how many places to move the decimal point left to obtain the scaled value.

    在内部,可以用任意精度任何范围的一个换算因子表示BigDecimal,换算因子表示小数点多少位,从而得到所期望范围内的值。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定