-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Example- https://www.oddcontrast.com/#hsl__hsl(196.31_8.1868~_39.763~)__hsl(299_44~_91.5~)
It has a ratio of 4.498..., which rounds to 4.5. 4.5 is displayed, but the pass/fail is determined based on the full number.
Some options-
- Pass/fail based on the rounded number instead of the full number, which gives less precision (but are they actually significant digits? Probably not)
- Display a "floor" instead of a rounded number, in which case the example would show 4.49. This maintains that the ratio is not actually passing, but the value is more incorrect.
- Catch cases where this happens, and show the ratio to more digits, and not round. Always correct, always in sync, but adds more variation to the ratio length.
I guess the question is - do we care more about the pass fail or the ratio being accurate? Or make it a bit more complex and go with option #3?
We may also want to always show 2 digits after the decimal. This doesn't solve this issue, but would make the design more stable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels