cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

12-Amethyst

## Convert feet to feet and inches

Hello,

if the result is in feet, Is there a direct and simple way or a function to convert it to feet and inches?

For example L=6.33 feet          L=6'-4"

Thanks,

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:SFares)

Unfortunately Prime does not offer this way to display a length.

You would have to write and use a custom function to display it similar to the desired look.

Here is a simple (and limited) function which returns a string to display the desired result

For a different and more comprehensive approach on this you may have a look at the work of Fred Lusk

Lusk_Feet Inches & Fractions Calculations

5 REPLIES 5
24-Ruby V
(To:SFares)

Unfortunately Prime does not offer this way to display a length.

You would have to write and use a custom function to display it similar to the desired look.

Here is a simple (and limited) function which returns a string to display the desired result

For a different and more comprehensive approach on this you may have a look at the work of Fred Lusk

Lusk_Feet Inches & Fractions Calculations

12-Amethyst
(To:Werner_E)

Thank you, Werner!

24-Ruby V
(To:SFares)

Forgot to mention that Prime offers a unit (!!?) FIF

24-Ruby IV
(To:Werner_E)

24-Ruby V
(To:ValeryOchkov)

Its a bit buggy that FIF used as a unit can also be applied to a dimensionless number (which then is interpreted as a length in meter!!)

Announcements
Top Tags