×
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

Truncate a value in an equation

Truncate a value in an equation

Truncate a value in an equation

(OP)
Can anyone tell me if there is a way to truncate a value in Solidworks?

Thanks,

John

RE: Truncate a value in an equation

In the drawing format?  Or in the model?  I'm thinking that you might mean the drawing, in that case - you click on the dimension to be truncated, and a menu with significant figures shows up.  To globally truncate, in the model you go to Tools|Options| - then various options appear for drawing units and 'modeled' values.

RE: Truncate a value in an 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: Truncate a value in an equation

(OP)
I need to truncate a calculation in the model.  I have looked in the SW help and they do not have a truncation function available.

I am trying to set up an equation to calculate the number or holes needed in a pattern.  Depending on the length of your stock, and the hole spacing, a calculation generally will give you some amount of decimal points left over.

I need to be able to take the number of holes calculation (example answer: 10.6435) and truncate the decimal places off of the answer to do further calcuations.

My goal is to calculate the number of holes needed in a part.  Then take the number of holes and calculate how much material I have left over, divide that in half and center the hole pattern on the stock.

Any help would be appreciated.

Thanks,

John

RE: Truncate a value in an equation

Use the int function. It will cut off the decimal portion.

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

RE: Truncate a value in an equation

(OP)
That is exactly what I needed for this situation.

Thanks for your help.

John

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