Re:What every computer programmer should know about floating...
by martindevans on Tuesday September 16, 2014 @10:42AM
(#8324695)
I'm a game programmer so I end up dealing with lots of floating point numbers no matter what language I'm working in because physics and graphics engines just love their floats. C#, C++ and Typescript are my most frequent languages but I would expect to encounter these same issues whatever language I'm working in.
I did some pretty cool work on a fixed point physics engine once - using integers to represent individual millimeters, so the game field was limited to a mere 4294.97Km! But the graphics engine was still all floats, there's no escape :'(
Re:What every computer programmer should know about floating...
by sphericalgames on Tuesday September 16, 2014 @11:18AM
(#8324908)
When using C++ in games you often find that you want results to be deterministic so it is same for all players across all hardware.
I deal with business math, which while there are positions to the right of the decimal point we have very well defined numbers and such.
What languages other than javascript have issues such as described in this article?