You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Comparing 2 double values using groovy in EPBCS

edited Nov 18, 2021 11:17AM in Planning 4 comments

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!

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!