Post AXOhvaAMETwQMXuMu8 by paramdeo@fosstodon.org
 (DIR) More posts by paramdeo@fosstodon.org
 (DIR) Post #AXOTZ6o7JAvfZxtXo8 by fosserytech@mstdn.social
       2023-07-05T19:26:19Z
       
       0 likes, 0 repeats
       
       Wanna see a cursed image? There you go#JavaScript #js #Programming #coding #fosserytech
       
 (DIR) Post #AXOTcwmwV5PBfFAy1I by takishan@mastodon.social
       2023-07-05T19:27:07Z
       
       0 likes, 0 repeats
       
       @fosserytech just an artifact on how computers handle floatsnot unique to javascript
       
 (DIR) Post #AXOUrv65Ae9ciUpdNA by wakame@tech.lgbt
       2023-07-05T19:41:00Z
       
       0 likes, 0 repeats
       
       @fosserytech Looks normal to me.
       
 (DIR) Post #AXOhvaAMETwQMXuMu8 by paramdeo@fosstodon.org
       2023-07-05T22:07:17Z
       
       0 likes, 0 repeats
       
       @fosserytech Hilarious, but losing precision in floating point arithmetic is an issue with all languages not just JavaScript. There are Binary Coded Decimals but that's a rabbit hole you don't want to go down...A workaround is to shift the decimal places to be able to use integer arithmetic, and then readjust to get your answer as a float.