Improved behaviour & functionality of "round", "roundup","rounddown" functions. round() does not work in a parameter list because it expects something unitless. The only solution appears to be to create several user parameters for each step. i.e this is what my user parameters are like:
p1(in)=round(value/ 1 in)*1in
if I use isolate as suggested by someone else I only could get it working with extra parameters: p1(in)=Value p2(ul)=round(isolate(p1;in;ul)) p3(in)=p2*1 in
It's messy, hard to read, east to make mistakes in a large formula.
Round also does not allow you to choose # of decimal places to round to. The above method can be modified for this case as well, but it would be much easier if round allowed more inputs: For example:
round(Value;unit to round in;position from decimal to round at) round(12.3456 in; in; -1) = 12.3 in or round(12.3456 in;mm;-1)= 313.6 mm