Skip to main content
14-Alexandrite
January 27, 2024
Solved

Convert feet to feet and inches

  • January 27, 2024
  • 2 replies
  • 2820 views

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

Best answer by Werner_E

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

Werner_E_1-1706379619285.png

 

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

2 replies

Werner_E25-Diamond IAnswer
25-Diamond I
January 27, 2024

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

Werner_E_1-1706379619285.png

 

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

SFares14-AlexandriteAuthor
14-Alexandrite
January 27, 2024

Thank you, Werner!

25-Diamond I
January 28, 2024

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

Werner_E_0-1706473964069.png

 

24-Ruby IV
January 29, 2024

ft-in-men.png

25-Diamond I
January 29, 2024

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!!)

Werner_E_0-1706532683918.png