約107件1ページ目

日本語のみで絞り込む

The BigDecimal class provides operations for arithmetic, scale manipulation, rounding, comparison, hashing, and format conversion. The toString() method ...

2019/10/16 -... scale is (this.scale() + multiplicand.scale()). Syntax: public BigDecimal multiply(BigDecimal multiplicand) Parameters: This method accepts ...

2018/2/19 -You have the brackets messed up. Consider this: kilos.multiply(new BigDecimal("2.20462").setScale(SCALE, BigDecimal.ROUND_HALF_UP));.

Returns a BigDecimal whose value is (this × multiplicand), and whose scale is (this.scale() + multiplicand.scale()).

2021/2/11 -You can use the setScale() method to increase scale if you want to show the exact number of digits in a fraction, even if these will be zeros.

multiply(BigDecimal multiplicand) returns a BigDecimal whose value is (this × multiplicand), and whose scale is (this.scale() + multiplicand.scale()).

2023/5/3 -Returns a BigDecimal whose scale is the provided value and whose unscaled value is calculated by multiplying or dividing this BigDecimal's ...

2024/5/26 -Scale is the number of digits to the right of the decimal point. For instance, the number 3.982 has a precision of 4 and a scale of 3. What is ...

Returns the scale of this BigDecimal . If zero or positive, the scale is the number of digits to the right of the decimal point. If negative, the unscaled ...