{"categories":["GCC"],"published":"2007-10-04 00:12:16","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/tanakaBox/","blog_title":"\u30dc\u30af\u30ce\u30b9","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20071004%2F1191510736\" title=\" K&amp;R\u3092\u8aad\u3082\u3046(40) \u6f14\u7fd2 4-2 \u6307\u6570\u8868\u73fe\u4ed8\u304datof - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"math.h\u3067\u5c0f\u4e00\u6642\u9593\u30cf\u30de\u3063\u3066\u3057\u307e\u3063\u305f\u3002 \u6f14\u7fd2 4-2 atof\u3092\u62e1\u5f35\u3057\u3066,123.45e-6\u306e\u3088\u3046\u306a\u6307\u6570\u8868\u73fe\u3092\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u554f\u984c\u3002 #include <math.h> double atof_copy(char s[]) { double value = 0, power = 1; int i,sign, e_sign, e = 0; for (i = 0; isspace(s[i]); i++) ; sign = (s[i] == '-') ? -1 : 1; if (s[i] == '+' || s[i] == '-') i++; for (; isdigit(s[i]); i++) \u2026","blog_url":"https://boxnos.hatenablog.com/","width":"100%","author_name":"tanakaBox","provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","image_url":null,"url":"https://boxnos.hatenablog.com/entry/20071004/1191510736","title":" K&R\u3092\u8aad\u3082\u3046(40) \u6f14\u7fd2 4-2 \u6307\u6570\u8868\u73fe\u4ed8\u304datof"}