• Post Reply Bookmark Topic Watch Topic
  • New Topic

BigDecimal  RSS feed

 
Mag Yeoh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wanna compare 2 BigDecimal value...how to do it....

BigDecimal minX;
BigDecimal maxX;
BigDecimal dsr;

operation is like below.....
(minimumX < dsr <= MaximumX)

Thanks.....

warmest regard
Mag
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BigDecimal implements the Comparable mixin interface, which means you are able to compare BigDecimal instances.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, "minimumX < dsr <= MaximumX" is equal to "(minimumX < dsr) AND (dsr <= MaximumX)".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!