{"author_name":"faith_and_brave","provider_name":"Hatena Blog","type":"rich","blog_url":"https://faithandbrave.hateblo.jp/","provider_url":"https://hatena.blog","description":"C++11\u3067<string>\u30d8\u30c3\u30c0\u306b\u8ffd\u52a0\u3055\u308c\u305fstd::to_string()\u95a2\u6570\u3067\u3059\u304c\u3001\u3053\u306e\u95a2\u6570\u306bfloat\u578b\u306e\u5024NaN\u3082\u3057\u304f\u306finfinity\u3092\u6e21\u3057\u305f\u3089\u3001\u3069\u3093\u306a\u7d50\u679c\u306b\u306a\u308b\u306e\u304b\u3002\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u304b\u3001\u3082\u3057\u304f\u306f\u6b63\u5e38\u306b\u7d42\u4e86\u3059\u308b\u306a\u3089\u3069\u3093\u306a\u6587\u5b57\u5217\u306b\u306a\u308b\u304b\u3002\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002 #include <iostream> #include <limits> #include <string> int main() { using limits = std::numeric_limits<float>; std::cout << std::to_string(limits::quiet_NaN()) << std\u2026","title":"NaN\u3068infinity\u306e\u6587\u5b57\u5217\u5316","categories":["C++"],"author_url":"https://blog.hatena.ne.jp/faith_and_brave/","url":"https://faithandbrave.hateblo.jp/entry/2014/03/06/152801","height":"190","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2014%2F03%2F06%2F152801\" title=\"NaN\u3068infinity\u306e\u6587\u5b57\u5217\u5316 - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","published":"2014-03-06 15:28:01","version":"1.0","image_url":null}