If value is below 0.3, format the output as
rational which is commonly used in photography.
Value is computed from the double input value.
CCBUG: 343273
If value is below 0.3, format the output as
rational which is commonly used in photography.
Value is computed from the double input value.
CCBUG: 343273
No Linters Available |
No Unit Test Coverage |
Buildable 12347 | |
Build 12365: arc lint + arc unit |
Ideally it would be possible to store rationals in KFM and Baloo, but this is probably a lot of work. The computation here is quite simple
src/formatstrings.cpp | ||
---|---|---|
167 | I changed the threshold to be lower than that as a workaround. |
src/formatstrings.cpp | ||
---|---|---|
167 | For a chart of typical exposure times, see https://www.borrowlenses.com/blog/shutter-speed-chart/ I can confirm for my Canon SLR there is at one more value which would give a deviating result, 0.3 seconds (!= 1/3s). 0.25 seconds is shown as 1/4s. |
src/formatstrings.cpp | ||
---|---|---|
167 | Thanks for the information. From what I've read, for the exposure time the right threshold is 0.3, and the value is always a rational of 1/x. |
src/formatstrings.cpp | ||
---|---|---|
167 | Computation now also falls back to decimal representation if it cannot be represented with a 1/x rational |