I have a situation where I am converting decimal feet back to separate feet, inch, and fraction numerators. I have a couple of instances were using either ROUNDDOWN or TRUNC is giving me a result of 1 less than what it should be. At first I thought I was missing something with the rounding function default behavior, but then I tried TRUNC and i get the same thing.
Basically I took the resulting 12.41666667 of decimal feet and preformed a round down to drop the decimal places to get 12. I then isolated the inches by subtracting the cell with 12 from the cell with 12.4166667 and multiplied it by 12 to get an even 5 in decimal inch, but when preform a ROUNDDOWN(S7,0) i end up with a result of 4. TRUNCE does the same thing. It also happens with 18.333333 decimal feet but works as I intend/need it to with 24.25 decimal feet.
So what is happening is with the 12.41666667 example I am getting a final result of 12-4-16 (that is 16 6ths of an inch) instead of 12-5-0. The 24.25 example is correctly giving me 24-3-0.
I am sure I can come up with some crazy work around, but i would rather figure out why it is doing that in the first place.
In the file attached I have the bad ones highlighted in red and the good one highlighted in green.
Bookmarks