wood burning stoves*
The moose likes Java in General and the fly likes Big Decimal issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Big Decimal issue" Watch "Big Decimal issue" New topic
Author

Big Decimal issue

shoeb sattar
Greenhorn

Joined: Feb 05, 2010
Posts: 9

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

Joined: Oct 13, 2005
Posts: 38363
    
  23
Don’t know. You would have to look at the API documentation for those two classes.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7652
    
  19

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


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3446
    
  12
And to convert the other way com.ibm.icu.math.BigDecimal has a constructor that takes a java.math.BigDecimal as a parameter.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Big Decimal issue