The first paragraph of the javadoc for BigDecimal says:
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)
Can someone explain what this means, especially the bit starting 'If negative', but preferably all of it? I think that 'scale' means the numbers after the decimal point, but does that mean the 'unscaled' is the rest of it?
float
and/ordouble
are? I mean in a way they are stored. – PM 77-1