Darwinbots Forum

Bots and Simulations => Evolution and Internet Sharing Sims => Topic started by: spike43884 on June 26, 2016, 06:12:23 AM

Title: Just incase your still cursed by floating point errors
Post by: spike43884 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.
Title: Re: Just incase your still cursed by floating point errors
Post by: 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.
Title: Re: Just incase your still cursed by floating point errors
Post by: spike43884 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.