Java Tutorial 10 – BigDecimal


Video is ready, Click Here to View ×

Primitive numeric types are useful for storing single values in memory. But when dealing with calculation using double and float types, there is a problems with the rounding.It happens because memory representation doesn’t map exactly to the value. For example, a double value is supposed to take 64 bits but Java doesn’t use all 64 bits.It only stores what it thinks the important parts of the number. So you can arrive to the wrong values when you adding values together of the float or…

2 thoughts on “Java Tutorial 10 – BigDecimal

Leave a Reply

Your email address will not be published. Required fields are marked *