(URGENT)How can i convert double to BigDecimal?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   stanley_ten
Posted On:   Wednesday, September 26, 2001 06:45 PM

To convert from int to BigDecimal I can use BigDecimal.valueOf() ... but how about from double to BigDecimal? please give some code examples... thanks

Re: (URGENT)How can i convert double to BigDecimal?

Posted By:   Anonymous  
Posted On:   Wednesday, September 26, 2001 10:21 PM

Hi,


double d = 243.4848349459848;
BigDecimal bd = new BigDecimal(d);



Pl. check the java doc.... -:)


~vivek
About | Sitemap | Contact