I want to do the following:
length := 16 in
diameter := trunc(((length + 2 in)/pi)in)
diameter = 7.0000 in
I need to be able to set the result of a parenthesis-enclosed
expression
to inch units, then apply the trunc() function to
it, retaining the units as inches. At the moment, it
seems as though it is only possible to apply the trunc()
function to the results of computation in parenthesis
using SI units, so the result becomes 0 because the
value of (length + 2 in)/pi is 0.1779 m.
The workaround seems to be to not use units at all,
but that is not nearly as nice.