Java Traps: Big Decimal

Java Traps: Big Decimal

Fortunately, it’s now almost common sense for programmers not to use the simple types float’s and double’s for representing monetary values (or any other value preferably :-) due to the impression surrounded with these types. float’s and double’s are further restricted by a fixed set of bits to represent them, hence only a limited set of numbers can be held in these types. Armed with this knowledge, fun code examples can be produced such as the one from

Read More:

http://firstclassthoughts.co.uk/java/traps/big_decimal_traps.html 

Thanks

Leave a Reply

You must be logged in to post a comment.