Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Rounding Off

Status
Not open for further replies.

dcharles

Mechanical
May 14, 2001
30
0
0
GB
In an equation to determine a parameter using the CEIL command to determine the d.p. Is there any way I can round to the nearest 5 or 10?
 
Replies continue below

Recommended for you

Lets look at this example. Some value of a dimension (say d1) needs to be either 0 or 10. You can write the following relations:
/***************************
VALUE=d1-5
IF VALUE <5
d1=0
ELSE
d1=10
ENDIF
/****************************
The parameter VLAUE can be defined only in the relations if needed. I am not sure if this answers your questions, but it can be abuilding block of what you want.

Steve
 
Status
Not open for further replies.
Back
Top