Can we control decimal places in equation or where does the evaluated values in equations decides for decimal places.

Can we control decimal places in equation or where does the evaluated values in equations decides for decimal places.

Hi Deepak,

Wow, how weird is this. I am so used to you answering, not asking.

I always thought the equation decimal places were controled through the

units in tools>options>document properties>units

http://help.solidworks.com/2011/English/SolidWorks/sldworks/AllContent/SolidWorks/Core/Detailing/t_Using_Equation_Editor.htmFunny - looks like the document properties still play an important role in the original mass evaluation. If the mass is in grams, you get 3 digits precision. In kg you get 6, but not more.

From that moment on, any rounding is applied to the original mass number. Obviously if you start with 3 digits precision, you cannot get 4 or more after the fact.

So I am taking back my complaint and introduce a new one. The rounding works fine in any of the 3 solutions presented in this thread. The mass is calculated only to milligrams, no matter what.

**You cannot get fractions of a miligram.**hello,

im trying to fix the same issue with too many decimal places being shown and i cant figure out how to fix it by adding the "format" line. my equation is:

"SA SPECIAL"=("SW-SurfaceArea"/144)/25*1.25

this is a formula we use to figure out powder coat coverage on sheet metal parts in LBS. when i added the "format" & #.## to the equation line i get a message that reads "The syntax of this equation is inncorrect"

Equations use VBA so you can use the Format command. Just specify the nujmber of # after the .

"Test"=Format( "SW-Mass"*.002,"#.###")

Another solution from Bill that I think is better.

"Precision"=round("SW-Mass"*.002,2). The last number (2) is your decimal point precision.