Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Eelco Lempsink

@eelco@mstdn.io
mastodon 4.7.3
  • Open on mstdn.io

CTO @ Framer. Ex-indie (Beamer for Mac). Shipping is life. 🕺🧗‍♂️🏎️

0 Followers
0 Following
3 Posts
Joined August 13, 2018
Website:
https://eelco.lempsink.nl
Work:
https://www.framer.com
Threads:
https://threads.net/@eeclo
Open post
Eelco Lempsink @eelco@mstdn.io
· 10mo ago
Replying to

@marcedwards Try this in the terminal:

echo '{"test":0.45}' > test.plist plutil -convert xml1 test.plist cat test.plist

As you can see, the way floats are stored in the XML serialization has nothing to do with how artisanal the original JSON was.

Bonus points: edit the XML version back to 0.45 and run the convert command again.

1
2
0
0
Open post
Eelco Lempsink @eelco@mstdn.io
· 10mo ago
Replying to
@marcedwards Don’t think those are rounding errors, just an effect of the way that floats are represented in binary. So a human indeed probably entered the values you said, but these representations easily parse to the right binary representation that is closest to that number.
0
2
0
0
Open post
Eelco Lempsink @eelco@mstdn.io
· 10mo ago
Replying to
@marcedwards Yes correct. My reaction was to your initial statements: “They’re also full of rounding errors, which makes me thing they were generated by a tool.” Not errors, and yes plist files are not intended to be hand authored and will generally go through a check / formatting step. “A human probably typed 0.033 and 0.45, and rounding errors caused the issue in the screenshot.” This is not true because they are not errors / issues. Apologies for being a reply-guy! 🙈
0
2
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 19:02:16 UTC