mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-19 06:17:03 -04:00
Fixed Windows build: diffcalc C vs C#.
A slight difference (7.9e-17) in calculation now exists between the C and C# horizontal angle calculations on Windows. This is not surprising because the atan2() function is known to return slightly different values on other compilers/platforms. Adjusted the tolerance for this tiny amount of roundoff discrepancy.
This commit is contained in:
@@ -9,7 +9,7 @@ if not exist !CTESTEXE! (
|
||||
|
||||
echo.Diffing calculations.
|
||||
|
||||
!CTESTEXE! diff 0.0 temp\c_check.txt dotnet\csharp_test\csharp_check.txt
|
||||
!CTESTEXE! diff 7.9e-17 temp\c_check.txt dotnet\csharp_test\csharp_check.txt
|
||||
if errorlevel 1 (exit /b 1)
|
||||
|
||||
!CTESTEXE! diff 5.6e-15 temp\c_check.txt temp\js_check.txt
|
||||
|
||||
Reference in New Issue
Block a user