kamadak / exif-rs

Exif parsing library written in pure Rust
BSD 2-Clause "Simplified" License
190 stars 42 forks source link

Cap floating point precision on `DisplayValue` #32

Open zekroTJA opened 1 year ago

zekroTJA commented 1 year ago

I've noticed that floating point values are sometimes represented with unnecessarily high precision. I think DisplayValue should either cap the precision to a fixed value or there should be a method on DisplayValue to do so.

image image

Here you can find the image which produces this issue. https://dvbkeaxv2fqwj.cloudfront.net/images/DSC06403.jpeg

kamadak commented 1 year ago

Sure. I have not come up with a good API, though.