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.
The round() function can be used in equations to round results to the closest whole number either up or down.
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.
The post How to Round Numbers in SOLIDWORKS Equations [VIDEO] appeared first on SolidWorks Tech Tips, Videos & Tutorials from Javelin.