25. Java BigDecimal - Java | BigNumber | Hackerrank

Publié le: 12 août 2018
sur la chaîne: Learn to code
10,444
100

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).


Sur cette page du site, vous pouvez voir la vidéo en ligne 25. Java BigDecimal - Java | BigNumber | Hackerrank durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learn to code 12 août 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 10,444 fois et il a aimé 100 téléspectateurs. Bon visionnage!