nearfloat
前のまたは次の浮動小数点数を取得
呼び出し手順
xnear = nearfloat(dir, x)
引数
- dir
- 文字列 ("succ" または "pred") 
- x
- 実数のスカラー, ベクトルまたは行列 
- xnear
- 実数のスカラー, ベクトルまたは行列 
説明
この関数は要素毎に
            xの要素の(浮動小数点数の集合の意味で)隣にある要素
            (number_properties参照)を計算します.
            dir = "succ"の場合は次の要素,
            dir = "pred".の場合は前の要素となります.
参照
- number_properties — 浮動小数点数パラメータを定義する
- log2 — Base-2 logarithm. Base-2 exponent and mantissa of some real numbers
| Report an issue | ||
| << isnan | Floating point | nextpow2 >> |