25. Java BigDecimal - Java | BigNumber | Hackerrank

preview_player
Показать описание
Java's BigDecimal class can handle arbitrary-precision signed decimal numbers.

public class BigDecimal
extends Number
implements Comparable
Immutable, arbitrary-precision signed decimal numbers. A BigDecimal consists of an arbitrary precision integer unscaled value and a 32-bit integer scale. If zero or positive, the scale is the number of digits to the right of the decimal point. If negative, the unscaled value of the number is multiplied by ten to the power of the negation of the scale. The value of the number represented by the BigDecimal is, therefore (unscaledValue × 10-scale).
Рекомендации по теме
Комментарии
Автор

How we got to know that sort method is descending in order?
agar ascending karne ho to kaise karenge?

unstoppable