無限大にあふれる許容値を受け付けないようにする

このコミットが含まれているのは:
routersys committed 2026-10-02 13:16:44 +09:00
1 親 09d582126a
コミット 9de64b74ba
1ファイル変更
+5
+5
ファイルの表示
@@ -19,6 +19,11 @@ internal readonly record struct ComputeTolerance
Ulps = ulps;
Scale = scale;
FlushedOperations = flushedOperations;
if (!double.IsFinite(Absolute))
{
throw new ArgumentOutOfRangeException(nameof(scale));
}
}
public static ComputeTolerance Exact => default;