claunia / plist-cil

C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
Other
54 stars 17 forks source link

Roundtrip of the value 0 for reals #34

Closed qmfrederik closed 5 years ago

qmfrederik commented 6 years ago

It turns out you can have multiple representations of the value 0 for reals. Until now, I always saw 0.0, but you can also have 0.000000 like this:

<key>TimeZoneOffsetFromUTC</key>
<real>0.000000</real>

If we want to roundtrip, we should keep the number of significant digits somewhere in the NSNumber object.

claunia commented 5 years ago

Is it really needed? Can you attach a proposal.

qmfrederik commented 5 years ago

I think we can close this for now, I don't need it currently. I'll reopen this if I ever need it :)