Post Reply 
(17B, 17BII, 27S) Unit Conversions
06-23-2017, 01:31 PM
Post: #1
(17B, 17BII, 27S) Unit Conversions
Shown here is a simple technique for having 19BII-style unit conversions, i.e. enter any one input, and solve for any one output. Note that all other variables must be 0 to return correct results, so make sure you CLEAR DATA first!

Line breaks have been added for clarity. Conversion factors were taken from my 200LX. These will also work on the 19B, 19BII, and palmtops, but as those already have unit conversions, there's little value added there.

Code:
LENGTH:
0.0254*(
IF(S(IN):-1:1)*IN
+IF(S(FT):-1:1)*FT*12
+IF(S(YD):-1:1)*YD*36
+IF(S(MI):-1:1)*MI*63360
)
+IF(S(MM):-1:1)*MM/1000
+IF(S(CM):-1:1)*CM/100
+IF(S(M):-1:1)*M
+IF(S(KM):-1:1)*KM*1000

Code:
AREA:
IF(S(SQFT):-1:1)*SQFT*.09290304
+IF(S(SQM):-1:1)*SQM
+IF(S(SQMI):-1:1)*SQMI*2589988.110336
+IF(S(SQCM):-1:1)*SQCM*1E-4
+IF(S(ACRE):-1:1)*ACRE*4046.872609874252

Code:
VOLUME:
IF(S(ML):-1:1)*ML/1000
+IF(S(L):-1:1)*L
+3.785411784*(
IF(S(GAL):-1:1)*GAL
+IF(S(PT):-1:1)*PT/8
+IF(S(QT):-1:1)*QT/4
+IF(S(CUP):-1:1)*CUP/16
+IF(S(FLOZ):-1:1)*FLOZ/128
+IF(S(TBSP):-1:1)*TBSP/256
+IF(S(TSP):-1:1)*TSP/768
)
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)