Java's BigDecimal class can handle arbitrary-precision signed decimal numbers.
Oracle Documentation - https://docs.oracle.com/javase/7/docs...
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).
Nesta página do site você pode assistir ao vídeo on-line 25. Java BigDecimal - Java | BigNumber | Hackerrank duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Learn to code 12 Agosto 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 10,444 vezes e gostou 100 espectadores. Boa visualização!