Bots and Simulations > Evolution and Internet Sharing Sims

Just incase your still cursed by floating point errors

(1/1)

spike43884:
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.

Botsareus:
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.

spike43884:

--- Quote from: Botsareus 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.

--- End quote ---
Ahh k.
Nvm then.

Navigation

[0] Message Index

Go to full version