View Issue Details

IDProjectCategoryView StatusLast Update
0031718RunnerFunctionsPublic2020-05-19 09:34
ReporterDanAssigned ToRussell Kay 
PriorityVery LowSeverityD - MinorReproducibility100%
Status AssignedResolutionOpen 
Platform-OSWindows 10OS VersionPro x64
Product Version2.2.5 
Target VersionFixed in Version 
Summary0031718: Functions: Loss of precision when using small values with arctan2()
DescriptionAs you can see from the two tests in the attached project, there is a loss of precision when using small values with arctan2() - the function simply returns 0. Additionally, Windows YYC seems to round the values further, so ends up giving different results when using these smaller values.

math_set_epsilon() doesn't not appear to have any effect to any of the above.


(Note: I have not gotten out a calculator and confirmed the results are accurate to this level of decimal places - I am just noticing the issues above. The issue also still reproduces exactly the same in IDE v9.2.1.2214 Runtime v9.9.1.1788)
Steps To Reproduce1. Start GMS2 and import the attached project.
2. Run it for Windows VM and leave the integer dialog at the default of 200.
3. Observe despite some desired cases, the second column generally differs each line.
4. Press the spacebar and edit the integer so it is simply 20.
5. Observe the second column is now identical each line, even though the first column still changes its values.
6. Repeat steps 2-5, but this time using Windows YYC.
7. Observe the same general behaviour, but with the additional issue that when using the value of 20 the right-hand column is actually consistently using an incorrect and unexpected value.
Repro: 100%

1. Start GMS2 and import the attached project.
2. Run it for Windows VM and leave the integer dialog at the default of 200.
3. Ignore the text shown just now and instead press and release your Shift key.
4. Observe a series of 0.0...s is now shown to indicate arctan2() did not handle the values given in the code.
Repro: 100%
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.5.378
2.x Runtime Verified In

Activities

Dan

2020-05-18 11:54

Adminstrator  

arctan2_issue.yyz (23,679 bytes)