OK, all you American types
How can I display a value in decimal feet as “Feet and Inches”. eg 8’ 7/16"
I am making an oil tank monitoring system for a friend who has a small oil well lease in Texas and he wants to use Feet and Inches as the display option so as not to confuse his local guy.
The software actually has Meters, Feet and Inches as display options (why everyone is not all metricated these days sure makes our programming tasks more elaborate)
I am trying to come up with a way to display the reading but getting strange things like 2/5" which is not ideal. I’d like to round this to the nearest 1/16"
Converting back from feet and inches input was easy enough.