David, you can use an IF statement with the INT operator to round numbers.
For example where D`1 is an equation-driven dimension and D2 is an input value
-will round the dimension to the nearest whole number
If you want to introduce significant digits, just multiply the input value by 10^x power where x is the number of significant digits.
Sof for example, if in the above case I wanted to round the result to two significant digits, I'd enter the value as
For the purposes of making the equation easier to edit, I probably would split out the pieces into a couple of seperate equations
Global variable: Sig_digits; Value: 2
global variable:primer; equation: =10 ^ sig_digits
and then rewrite the equation so that all I have to change is the sig_digits value to adjust the precision of the equations.
Try it out.
In addition to John's suggestion, you can use a "Round" operation.
a = 34.485
b = round ("a") ' = 34 (Rounds to the nearest whole number)
c = round ("a",2) ' = 34.48 (Rounds to two decimeal places)
d = iif ( round ( "A" ) < "A" , round ( "A" ) + 1 , round ( "A" ) ) 'This would always round up to the nearest whole number.
Here is a great way to round values off to a fractional amount:
=ROUND(D1@Sketch1 * 16,0)/16
This will round your original value to the nearest 1/16". If you want the nearest 1/2", just change the 16's to 2's, or whatever fractinal value you need.
Thanks for the help guys. Works like a charm.