「.NETのfloat.Epsilon定数は計算機イプシロンではない」を編集中
ナビゲーションに移動
検索に移動
この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
25行目: | 25行目: | ||
static float Foo(float x) { return x; } | static float Foo(float x) { return x; } | ||
− | static float | + | static float Epsilon() |
{ | { | ||
int b, p; | int b, p; | ||
45行目: | 45行目: | ||
public static void Main(string[] args) | public static void Main(string[] args) | ||
{ | { | ||
− | Console.WriteLine("epsilon = {0}", | + | Console.WriteLine("epsilon = {0}", Epsilon()); |
} | } | ||
} | } |