| Author |
BigDecimal question
|
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
Hi, I want to check if the BigDecimal value is positive or negative. How can i do that? I didn't find any method which does this in the API. Thanks, Srikanth.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32830
|
|
|
Try the compareTo method and pass BigDecimal.ZERO.
|
 |
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
|
Thanks Ritchie it worked!
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32830
|
|
You're welcome
|
 |
 |
|
|
subject: BigDecimal question
|
|
|