You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Not really
Describe the solution you'd like
It would be nice if FeetInches had a method to output a string in architectural format (including fractional inches). Using the example from below, it would output a string like 5' - 4 1/2".
// Note that it isn't customary to use fractions - one wouldn't say "I am 5 feet and 4.5 inches".
Describe alternatives you've considered
An extension method works fine, and I'm happy to do this if it's not desired in this codebase but figured there may be others wishing for similar functionality.
Additional context
This is a pretty common notation in the US in certain contexts. I'm not sure if (the few) other cultures that use feet and inches have a different architectural format, so not sure how CultureInfo might play a role if any.
Related issue (never implemented AFIAK) #676. This would have to be implemented at the same time, so another thing to consider is how to deal with the fractional precision for rounding. Maybe via an argument, like an integer for the denominator?
I can contribute if this is wanted. I'm assuming we wouldn't want to override ToString() or any of it's overloads since that's already established. Maybe it'd be like ToArchitecturalString(int fractionDenom) ?
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Not really
Describe the solution you'd like
It would be nice if FeetInches had a method to output a string in architectural format (including fractional inches). Using the example from below, it would output a string like
5' - 4 1/2"
.UnitsNet/UnitsNet/CustomCode/Quantities/Length.extra.cs
Line 235 in ebd3275
Describe alternatives you've considered
An extension method works fine, and I'm happy to do this if it's not desired in this codebase but figured there may be others wishing for similar functionality.
Additional context
This is a pretty common notation in the US in certain contexts. I'm not sure if (the few) other cultures that use feet and inches have a different architectural format, so not sure how CultureInfo might play a role if any.
Related issue (never implemented AFIAK) #676. This would have to be implemented at the same time, so another thing to consider is how to deal with the fractional precision for rounding. Maybe via an argument, like an integer for the denominator?
I can contribute if this is wanted. I'm assuming we wouldn't want to override
ToString()
or any of it's overloads since that's already established. Maybe it'd be likeToArchitecturalString(int fractionDenom)
?The text was updated successfully, but these errors were encountered: