Cancel
Showing results for 
Search instead for 
Did you mean: 

Roundup numbers in the fractions of 5

Phenom
Phenom

In NX expressions, how could I roundup a number to a specified multiple (=5mm)? In Excel I would use =CEILING(REF_CEL,5)

Usage: Regular size Metric screws lengths are in every 5mm and would like to specify it according to the parent component length.

Michael Fernando


Die Designer
NX 11.0.2.7 + PDW

1 REPLY 1

Re: Roundup numbers in the fractions of 5

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Michael,

 

ceiling function in NX does not directly support it, but a simple solution would be

x=number_to_be_rounded

y=ceiling(x/5)*5

 

works well.

Regards,

Johannes