[issue38777] plist handling of real data type

2019-11-12 Thread David Nicolson
David Nicolson added the comment: It looks like it's just inconsistency in plutil that is causing the confusion. /usr/libexec/PlistBuddy -c Print test.plist Dict { FloatExample2 = 0.10 FloatExample3 = 100.00 FloatExample = 0.00 } cat test.plist | plutil -convert

[issue38777] plist handling of real data type

2019-11-12 Thread David Nicolson
New submission from David Nicolson : Converting float values stored as strings with the real data type can result in an integer value or a rounding error. import plistlib xml = """ http://www.apple.com/DTDs/PropertyList-1.0.dtd";> FloatExample 100.0 Floa