slarfybart [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=46698 number precision issue? <p>I have a counter that's incremented by 0.05 every update and wanted to perform some work when the the value rounds up to a whole number, e.g. 3. I noticed this code never executed. After some more investigation I discovered that 20 * .05 does not equal 1.0 but rather 0.9998.</p> <p>Is this a known issue? Here's an example:</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/46698/untitled_0.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=150552 https://www.lexaloffle.com/bbs/?tid=150552 Sun, 27 Jul 2025 08:00:47 UTC