Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fractional unit to nearest 1/x [Feature Request] #33

Open
benriver opened this issue Sep 30, 2022 · 1 comment
Open

Fractional unit to nearest 1/x [Feature Request] #33

benriver opened this issue Sep 30, 2022 · 1 comment
Assignees

Comments

@benriver
Copy link

Is your feature request related to a problem? Please describe.
I'm typically marking-up architecture/construction drawings and conventionally use fractional inches.
Usually they are rounded to the nearest 1/4", 1/8" or 1/16" like a tape measure. I thought that by specifying "Maximum fraction denominator" I would get the nearest 1/8" if I entered "8" but I actually got 5ths. Technically this is correct (no arguments there!) and it was the nearest fractional number with a denominator less than or equal to what I asked for....but no one uses 5ths or 7ths in this setting....

Describe the solution you'd like
Could there be an option to "round to the nearest fraction with a denominator <= X"?

Describe anything you've already tried
I can reduce the maximum denominator to force round whole numbers, but then I loose information because it would be rounding aggressively (say dropping from 1/8" to 1/4" precision and I could still get 1/3" increments if that were the closer number) so it's not an ideal solution.

Additional context
Screen shot showing "5.19 in" as "5-1/5 in" which is correct, of course, but unconventional.
image

Otherwise, thanks for building this!

@benriver
Copy link
Author

For completeness, I'd probably say that 5.19" would round to 5-1/4" in this case since that is a smidge closer than 5-1/8. It would lose on "The Price Is Right" show, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants