Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find the nearest value in a list in NX11 ? 1

Status
Not open for further replies.

PSI-CAD

Computer
Feb 13, 2009
997
Hi,

For example, I have the following list in expression:

List = {10, 20, 30 ,40 ,50, 80}
nb = 64.5

I need to find in NX11 the nearest upper value "nb" in "list": in this case it should be 80

Thanks in advance

Regards
Didier Psaltopoulos
 
Replies continue below

Recommended for you

Hi,

I have almost the solution with the function rest()

I have the following expressions


list={10,30,40,60,80,90}

last_value=Last( list ), so last_value=90

value=75

But I have a problem with the syntax

rest_list=Rest(list,value,last_value)

I assume that rest_list should be equal to (80,90)


rest_list_ycvhuj.jpg


thanks in advance

Regards
Didier Psaltopoulos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor