mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-25 16:48:34 -05:00
There is no function double.IsFinite() in .NET Framework. Reworked the sanity check in Astronomy.Pivot so the C# code builds in these older .NET platforms.
17 lines
373 B
C#
17 lines
373 B
C#
using CosineKitty;
|
|
using System;
|
|
|
|
namespace AstronomyTest
|
|
{
|
|
class Program
|
|
{
|
|
static int Main(string[] args)
|
|
{
|
|
var now = new AstroTime(DateTime.Now);
|
|
AstroTime full = Astronomy.SearchMoonPhase(180.0, now, 40.0);
|
|
Console.WriteLine("The next full moon will be: {0}", full);
|
|
return 0;
|
|
}
|
|
}
|
|
}
|