Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Big Decimal issue  RSS feed

 
shoeb sattar
Greenhorn
Posts: 14
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is my project uses "com.ibm.icu.math.BigDecimal" and "java.math.BigDecimal".
What is diference between them? How can we convert one to other?
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don’t know. You would have to look at the API documentation for those two classes.
 
Winston Gutkowski
Bartender
Posts: 10573
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shoeb sattar wrote:My question is my project uses "com.ibm.icu.math.BigDecimal" and "java.math.BigDecimal".
What is diference between them? How can we convert one to other?

Like Campbell, I don't know what the differences are, but I suspect very strongly that com.ibm.icu.math.BigDecimal will have a method to convert the value to a String, so you can probably convert with something like:
Winston
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And to convert the other way com.ibm.icu.math.BigDecimal has a constructor that takes a java.math.BigDecimal as a parameter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!