I've spent much of the afternoon trying to make sense of someone else's code in relation to units.
The Help File and the Program were inconsistent, and investigation with actual numbers became a maze of twisty passages.
The code can take inputs in a variety of units ( typical oilfield nonsense ), and generates simultaneous outputs in various units which seemed to be incorrectly labelled. It seemed the code was producing the correct answers, but in orders of magnitude wrong ( ie the units were incorrectly prefixed with K or M )
The decoding of this required a bunch of head-scratching as to what they authors actually meant.
Here are some examples:
hm3. (Hecto-metres) cubed. Not Hecto (Meters cubed). 100m x 100m x100m. 1 hm3=1000000 m^3.
MMBBL. 10^6 ( one Million ) Stock Tank Barrels. A Barrel is BBL. But in Awl Field Talk, a Million is prefixed MM sometimes. Not just M.
Bft3. Billion ( 10^9 ) Standard Cubic Feet.