Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > bigdecimalライブラリ > BigDecimalクラス > nan?
nan?
a.nan? は a が NaN のとき真を返します。