This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Big Decimal issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 32689
    
    4
Don’t know. You would have to look at the API documentation for those two classes.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 4752
    
    7

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?
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Big Decimal issue
 
Similar Threads
Congrats Amy!
Smiley test
Another 'Y' game
What is your favorite letter?
Where are You ?