Problem Description
Adding 0.1 to Zero every X Seconds should hit 1, but hits 0.99999
Attach a Capx
https://www.dropbox.com/s/i9n5l1ym15b0a ... .capx?dl=0
Description of Capx
Every 1 Second add 0.1 to Variable 'Number'
Steps to Reproduce Bug
- Run in Debug
- Look for Variable 'Number'
- 'Number should hit 1.0
Observed Result
Variable 'Number' misses value of 1
Expected Result
Variable 'Number' hits value of 1
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Edge: (YES)
Operating System and Service Pack
OS: Windows 10 Pro 64 bit
Version: 1709
Build: 16299.334
Construct 2 Version ID
Beta release r256
I feel this must have been discovered already.
I didn't know how to look it up, I kept getting results not related to this.
I ended up using
round((Number + 0.1)*10)/10
to get the results I wanted.