Conversion between Imperial and Metric values

Description

Routines to convert between imperial and metric values.

Note:
When converting from cm to feet and inches, the inches are the first 2 (!) digits after the decimal point. When converting feet and inches to cm, the input must be in the form f.iijj, i.e. ii inches, jj fractions of an inch.

Examples:

Program Resources

Labels

Name Description Name Description
 A Imperial Gallon (UK) = 4.54609 liter  2 mpg (US gallon) -> liter/100 km
 B Liquid Gallon (US) = 3.785412 liter  3 feet.inch -> cm
 C 1 mile = 1.609344 km .1 liter/100 km -> mpg (Imperial gallon)
 D 1 foot = 30.48 cm .2 liter/100 km -> mpg (US gallon)
 E 1 inch = 2.54 cm .3 cm -> feet.inch [f.iijj]
 1 mpg (Imperial gallon) -> liter/100 km

Program

Line Display Key Sequence Line Display Key Sequence Line Display Key Sequence
000 042 32 12 GSB B 084 4 4
001 42,21, 1 f LBL 1 043 20 × 085 48 .
002 32 13 GSB C 044 43 32 g RTN 086 5 5
003 20 × 045 42,21, 3 f LBL 3 087 4 4
004 32 11 GSB A 046 43 44 g INT 088 6 6
005 1 1 047 43 36 g LSTΧ 089 0 0
006 0 0 048 34 x↔y 090 9 9
007 0 0 049 30 091 43 32 g RTN
008 20 × 050 32 14 GSB D 092 42,21,12 f LBL B
009 34 x↔y 051 43 36 g LSTΧ 093 3 3
010 10 ÷ 052 20 × 094 48 .
011 43 32 g RTN 053 34 x↔y 095 7 7
012 42,21, .1 f LBL . 1 054 32 15 GSB E 096 8 8
013 32 13 GSB C 055 1 1 097 5 5
014 20 × 056 0 0 098 4 4
015 1 1 057 0 0 099 1 1
016 0 0 058 20 × 100 2 2
017 0 0 059 20 × 101 43 32 g RTN
018 34 x↔y 060 40 + 102 42,21,13 f LBL C
019 10 ÷ 061 43 32 g RTN 103 1 1
020 32 11 GSB A 062 42,21, .3 f LBL . 3 104 48 .
021 20 × 063 32 14 GSB D 105 6 6
022 43 32 g RTN 064 10 ÷ 106 0 0
023 42,21, 2 f LBL 2 065 43 44 g INT 107 9 9
024 32 13 GSB C 066 43 36 g LSTΧ 108 3 3
025 20 × 067 34 x↔y 109 4 4
026 32 12 GSB B 068 30 110 4 4
027 1 1 069 43 36 g LSTΧ 111 43 32 g RTN
028 0 0 070 34 x↔y 112 42,21,14 f LBL D
029 0 0 071 32 14 GSB D 113 3 3
030 20 × 072 20 × 114 0 0
031 34 x↔y 073 32 15 GSB E 115 48 .
032 10 ÷ 074 1 1 116 4 4
033 43 32 g RTN 075 0 0 117 8 8
034 42,21, .2 f LBL . 2 076 20 × 118 43 32 g RTN
035 32 13 GSB C 077 10 ÷ 119 42,21,15 f LBL E
036 20 × 078 1 1 120 2 2
037 1 1 079 0 0 121 48 .
038 0 0 080 10 ÷ 122 5 5
039 0 0 081 40 + 123 4 4
040 34 x↔y 082 43 32 g RTN 124 43 32 g RTN
041 10 ÷ 083 42,21,11 f LBL A