[Jprogramming] converting inches to feet, inches (and 16ths of inches)

Brian Schott schott.brian at gmail.com
Mon Sep 18 17:10:45 UTC 2017


My car is 166.7 inches long according to the specs.
Car cover coverages are measured in feet and inches.

To compute how many feet and inches long my car is I used the following
calculations.

   166.7%12
13.8917
   (-<.)166.7%12
0.891667
   12x *(-<.)166.7%12  NB. the x is not required, imo
10.7

Which seems to suggest the car is 13 feet 10.7 inches long, right?

Being a little annoyed at how difficult that calculation seems I decided to
try to also see how many 16ths of an inch is added, so I did the following
which seems to suggest between 11 and 12 sixteenths.

   16x * (-<.) 12x *(-<.)166.7%12  NB. again, x is extra
11.2

I wonder if there is an easier way to do this, which in my recollection
seems to be in the wheelhouse of Ian's Tabula or its brethren. I had
expected #: to be involved in the calculations, but could not find such.


-- 
(B=)
​​


More information about the Programming mailing list