Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.math.BigDecimal + java.math.BigDecimal ?

 
Indudhar Rao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I do this?

java.math.BigDecimal = java.math.BigDecimal + java.math.BigDecimal;

thanks
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read up on the BigDecimal.add() method in the API javadocs. It's an extremely important skill to learn to read the API and become familiar with the tools you will use to program Java. Java has an extensive set of documentation that you can even download for your convenience. These "javadocs" are indexed and categorized so you can quickly look up any class or method. Take the time to consult this resource whenever you have a question - you'll find they typically contain very detailed descriptions and possibly some code examples.

Java� API Specifications
Java� 1.5 JDK Javadocs
 
Indudhar Rao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes, I wonder how did I miss the BigDecimal.add(BigDecimal) method in the documentation. Thank you so much Steve.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic