Comparing 2 double values using groovy in EPBCS
Summary:
Need to compare grid values which are "double" data type using groovy
Content (required):
Hi all,
Encountering a small hurdle in groovy. I have 2 values which are being retrieved from a grid.
Let us consider,
def current_grid_data=1100.00
def other_grid_data=1200.00
When I am using .getClass(), in job console, I am seeing that data types are class "java.lang.Double".
Here, I need to compare if
current_grid_data < =other_grid_data
or current_grid_data > other_grid_data
Whenever I am using operators, encountering the following error:
Code:
Error:
Your ideas can help a lot. Thank you so much in advance!
Tagged:
0