Ann,
I do not have that exact attribute, but below if one that converts cm to inches:
QUESTION: Subject: cm to inches, problem with decimal
ANSWER 1
IFE=P(R,S,IF{([ANS,"my_cm_query ]|0*1.0000^CM) CM/2.54:2D}^/[ANS%0,"my_in_query"]|0)^#
ANSWER 2:
I would try the following:
IFE=P(R,S,IF{([ANS,"my_cm_query"]|0^CM) CM:4D/(2.54:2D)}^/[ANS%0,"my_in_query"]|0)^#
Meditech's division function / behaves a little differently than would be expected (and it
is a little difficult to put into words, so please bear with me).
The number of decimal places in the quotient is equal to the number of decimal places in
the dividend minus the number of decimal places in the divisor. So, in my example, the
centimeters (the dividend) are formatted to have 4 decimal places. The divisor (2.54) is
formatted to have 2 decimal places. So 4-2 = 2. So the quotient will have 2 decimal
places.
----------------------------------------------------------------------------------
You would need to reverse this logic:
Ft and In to Cm
Formula - FT*12+IN*2.54
IFE=P(R,S,IF{[ANS,"FT_QRY"]|0^FT!([ANS,"IN_QRY"]|0^IN)
IFE= FT*12+IN*2.54}^/[ANS%0,"CM_QRY"]|0)^#
-----------------------------------------------------------------------------------
The attribute below defaults the sum of queries "OEFEET" and "OEINCH".
It converts feet to centimeters and then adds it to the second part, which converts inches
to centimeters. It then defaults the total of both queries in centimeters
DFT=([ANS,"OEFEET"]|0*30.48)+([ANS,"OEINCH"]|0*2.54)
----------------------------------------------------------------------------------
Length
1 ft = 0.3048 m
1 in = 2.54 cm
1 cm = 0.4 in
1 in = 2.54 cm = 0.0254 m = 25.4 mm
1 foot = 30.5 cm = 0.305 m = 305 mm
1 foot = 12 in
----------------------------------------------------------------------------------