Notifications
Clear all
Topic starter
Has anyone setup coding to take Inches into Feet & Inches?
Say from the obsterm Height that is entered in Inches
Posted : March 28, 2012 7:19 am
This is fairly easy to accomplish using truncate() and mod(). You may format in any way that you want, but this is just what I came up with on the fly:
OBSNOW("HEIGHT", str(truncate((val(OBSNOW("HEIGHT"))/12), 0)) + "'" + str(mod(val(OBSNOW("HEIGHT")), 12)) + "''")
So, if OBSNOW("HEIGHT") was "73", the result would be changed to 6'1''
Posted : March 28, 2012 7:56 am
Topic starter
thanks Mike. That worked like a charm.
Posted : March 29, 2012 6:18 am