Link Details

Link 89320 thumbnail
User 246188 avatar

By kbilsted
via firstclassthoughts.co.uk
Published: Jun 23 2008 / 07:06

Article on common traps involving using the BigDecimal java Api and comparing it to using simple double types.
  • 18
  • 0
  • 1515
  • 750

Comments

Add your comment
User 172008 avatar

Daniel Dyer replied ago:

1 votes Vote down Vote up Reply

[Posting this here because there is no comment facility on the blog]

My own post on BigDecimal issues may also be of interest:
http://blog.uncommons.org/2007/06/25/bigdecimal-gotchas-and-the-need-for-overloaded-operators/

User 275836 avatar

albert123 replied ago:

0 votes Vote down Vote up Reply

I've read both blogs. You have some stuff around equals().. shit!

User 246188 avatar

kbilsted replied ago:

0 votes Vote down Vote up Reply

Hi Daniel, good points you've collected. Obviously you thought.. what a completely foo'ed class.. let me read the whole Javadoc just to see how foo'ed it really is! :) I shall amend my article accordingly.

User 281050 avatar

cbang replied ago:

1 votes Vote down Vote up Reply

Agh, I was having a perfectly fine day until I got reminded of BigDecimal.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.