We tried to load scripts but something went wrong. Please make sure that your network settings allow you to download scripts from the following domain: https://id-frontend.prod-east.frontend.public.atl-paas.net
この間の続き。 Inf/NaNは計算の失敗時に発生する値。 この値がでるとそのあとの処理はうまくいかない。 そのときに判定を間違えると面倒だよ。。 if( _finite(value) != 0 ) // Inf/NaNである Inf/NaNを判定するには、_finite を使うこと。 if( DEF_NaN == value ) // NaNである なんてことはできないよ。 >俺! あとは、参考。 #include <iostream> #include <limits> const double DEF_Inf = std::numeric_limits<double>::infinity(); const double DEF_NaN = std::numeric_limits<double>::quiet_NaN(); void printf_okng(bool f) { if(
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く