I’m having some problems properly formatting the “exposure time” exif tag. According to this Github issue comment:
If the numerator is 1 (as in 1/500), I will use the rational number, else convert it to a float.
Here are some values I am getting, and some of them are not very readable:
- Exposure time: 0.016666666666666666 s
- Exposure time: 0.025 s
- Exposure time: 0.016158 s
- Exposure time: 1/317 s
But since the value can also be a rational number, I’m getting an error trying to use
What is the best approach here?