×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Rounding in Equation

Rounding in Equation

Rounding in Equation

(OP)
Is it possible to round numbers using equations in SW?

RE: Rounding in Equation

Look up equations, operators and constants in the Help files of your version of SW.

cheers
Helpful SW websites  FAQ559-520
How to get answers to your SW questions  FAQ559-1091

RE: Rounding in Equation

Yes!

If you want to round, for example, to x.xx do the following

rouded result = (int(expression * 100+0.5))/100

The int function is available in equations.

Regards

RE: Rounding in Equation

But does the INT function round up or down to the nearest integer.  If it's like excel it will round down to the nearest integer which is not a real rounding function. A true rounding function will allow the user to specify at what decimal place the rounding is to take place.  I would have to say using the INT function is not a true rounding function.

Best Regards,

Heckler
Sr. Mechanical Engineer
SW2005 SP 5.0 & Pro/E 2001
Dell Precision 370
P4 3.6 GHz, 1GB RAM
XP Pro SP2.0
NVIDIA Quadro FX 1400
      o
  _`\(,_
(_)/ (_)

"Coming together is a beginning, staying together is progress, and working together is success." - Henry Ford



 

RE: Rounding in Equation

The rounding down of the INT function is filtered by the +0.5 factor. The result is always correct.

The only problem about the above expession is that, on some criteria, x.5 should round to x-1 instead of x+1.

But the rounding of x.5 to x+1 it's a general accepted rule in engineering.

Regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources