instance method BigDecimal#nan?

nan? -> bool[permalink][rdoc][edit]

self が NaN のときに true を返します。それ以外のときに false を返します。