This does not make any sense. In case of overflow or divide by zero, .NET should throw an exception or at least return an error code or bool (like TryParse). I think many would agree that it is difficult to anticipate that a framework would return infinity. This is because there is nothing really called infinity in computer science (How it will be represented in memory!). Furthermore, I cannot really do anything with it, I cannot use it as an input in another equation. This problem happened due to a bug that result in calling Math.Log(0).
What do I miss here?
https://learn.microsoft.com/en-us/dotnet/api/system.double.isinfinity?view=net-6.0