math.classify
code:Lua
c = textmodule.math.classify(n)
モジュール
math
引数
table:_
変数 型 概要
1 n number 処理する数値
返り値
table:_
変数 型 概要
1 c string 判別結果
概要
数値
n
の分類を返す。
table:判別結果
"infinite" 正・負の無限大
"nan" NaN(非数)
"normal" 正規化数
"subnormal" 非正規化数
"zero" 正・負のゼロ