NavList:
A Community Devoted to the Preservation and Practice of Celestial Navigation and Other Methods of Traditional Wayfinding
Re: How to round?
From: Paul Hirose
Date: 2019 Jun 13, 16:12 -0700
From: Paul Hirose
Date: 2019 Jun 13, 16:12 -0700
On 2019-06-12 11:46, Roger W. Sinnott wrote: > A good rule for rounding DDD° MM' 03" and other odd multiples of 03" is to choose whichever tenth of a minute is even. That's called "banker's rounding". In the Windows .NET Framework there's a Round() function which rounds to a specified precision, with an option to control its behavior in "midpoint" cases. https://docs.microsoft.com/en-us/dotnet/api/system.math.round?view=netframework-4.8#midpoint-values-and-rounding-conventions https://stackoverflow.com/questions/977796/why-does-math-round2-5-return-2-instead-of-3