Author Topic: Just incase your still cursed by floating point errors  (Read 3873 times)

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Just incase your still cursed by floating point errors
« on: June 26, 2016, 06:12:23 AM »
For any future internet sims, transfer data as doubles, but only act on them as floating points (even for the machine which created the value being acted upon).
That should make any rounding the same universally, and thus work more reliably.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: Just incase your still cursed by floating point errors
« Reply #1 on: June 26, 2016, 08:48:27 AM »
Not a bad idea. However the funky way binary files work: You can store a double and read it back as three bytes. So the issues (I think) are not there because the sizes are automatically allocated.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Just incase your still cursed by floating point errors
« Reply #2 on: June 30, 2016, 04:33:33 AM »
Not a bad idea. However the funky way binary files work: You can store a double and read it back as three bytes. So the issues (I think) are not there because the sizes are automatically allocated.
Ahh k.
Nvm then.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.