Quantcast
Channel: SOLIDWORKS – The Javelin Blog
Viewing all articles
Browse latest Browse all 242

How to Round Numbers in SOLIDWORKS Equations [VIDEO]

$
0
0

Equations in SOLIDWORKS can be a very powerful tool to automatically calculate dimensions and other parameters in SOLIDWORKS models. However what do you do when you require round numbers in SOLIDWORKS equations?

There are two functions that you can choose from depending on your requirements, the int() function and the round() function.

The int() function can be used to round a decimal value DOWN to the closest whole number.

Integer

Integer function

The round() function can be used in equations to round results to the closest whole number either up or down.

Round

Round Function

In SOLIDWORKS, unlike other programs like Microsoft Excel, there is no function that would always round a value UP to the closest whole number.  However this can be achieved through a bit of creativity.  We can use the int() function to round down to the closest value, then outside the int() function brackets add a “+1” operation to complete the rounding up to the next value.

Round up

Round Up Custom Function

 

 

The post How to Round Numbers in SOLIDWORKS Equations [VIDEO] appeared first on SolidWorks Tech Tips, Videos & Tutorials from Javelin.


Viewing all articles
Browse latest Browse all 242

Trending Articles