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).
On this page of the site you can watch the video online 25. Java BigDecimal - Java | BigNumber | Hackerrank with a duration of hours minute second in good quality, which was uploaded by the user Learn to code 12 August 2018, share the link with friends and acquaintances, this video has already been watched 10,444 times on youtube and it was liked by 100 viewers. Enjoy your viewing!