無限大にあふれる許容値を受け付けないようにする
このコミットが含まれているのは:
1ファイル変更
+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;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする