From 0b96e2a2d7c170dd23e6cd970eebc5aee78946b7 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sat, 13 Nov 2021 09:13:41 -0500 Subject: [PATCH] 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. --- generate/diffcalc.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate/diffcalc.bat b/generate/diffcalc.bat index 93b0cd0f..eb0d14ac 100644 --- a/generate/diffcalc.bat +++ b/generate/diffcalc.bat @@ -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