Operation
|
In earlier releases
|
In 11.7
|
equals1
|
jst.getDataSlotValue(“myDec1”)
.getValue().equals(newjava.math .BigDecimal(jst.getDataSlotValue (“myDec2”).getValue().toPlainString()) .setScale(jst.getDataSlotValue (“myDec1”).getValue().scale(), java.math.BigDecimal.ROUDND_DOWN)) |
mydec1.equals(mydec2)
|
does not equal2
|
!myDec1.equals(newjava.math
.BigDecimal(myDec2).setScale (myDec1.scale(),java.math .BigDecimal.ROUND_DOWN)) |
!mydec1.equals(mydec2)
|
less than3
|
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale (myDec1.scale(),java.math .BigDecimal.ROUND_DOWN))<0 |
com.progress.util.OpenEdgeData
TypeComparisonUtil.isLesserThan (myDec1,myDec2) |
less than or equal to4
|
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale (myDec1.scale(),java.math .BigDecimal.ROUND_DOWN))<=0 |
com.progress.util.OpenEdgeData
TypeComparisonUtil.isLessOrEq (myDec1,myDec2) |
greater than5
|
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale (myDec1.scale(),java.math .BigDecimal.ROUND_DOWN))>0 |
com.progress.util.OpenEdgeDataType
ComparisonUtil.isGreaterThan (myDec1,myDec2) |
greater than or equal to6
|
myDec1.compareTo(newjava.math
.BigDecimal(myDec2).setScale (myDec1.scale(),java.math .BigDecimal.ROUND_DOWN))>=0 |
com.progress.util.OpenEdgeDataType
ComparisonUtil.isGtOrEq(MyDec1,MyDec2) |
is unknown7
|
myDec1==null
|
mydec1.isNull( )
|
is not unknown8
|
mydec1!=null
|
!mydec1.isNull( )
|