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