{"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20061127%2Fp1\" title=\"JScript\u9ad8\u901f\u5316\uff0817\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://inamori.hateblo.jp/entry/20061127/p1","blog_title":"inamori\u2019s diary","published":"2006-11-27 00:00:00","provider_url":"https://hatena.blog","version":"1.0","blog_url":"https://inamori.hateblo.jp/","provider_name":"Hatena Blog","width":"100%","height":"190","description":"\u3042\u3068\u3061\u3087\u3063\u3068\u3060\u3051\u3002 \u7d04\u5206\u306e\u3068\u3053\u308d\u3092\u6539\u5584\u3067\u304d\u308b\u3002 function fraction_normalize() { // \u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u306e\u4e92\u9664\u6cd5 var a = this.a; var b = this.b; var a2, f; while(true) { if((a2 = a % b) == 0) { f = b; break; } if((b %= a) == 0) { f = a; break; } a = a2; } this.a /= f; this.b /= f; if(this.b this.a = -this.a; this.b = -this.b; } }\u6700\u5f8c\u306e\u5272\u308a\u7b97\u306e\u3068\u3053\u308d\u306f\u3001\u2026","title":"JScript\u9ad8\u901f\u5316\uff0817\uff09","image_url":null,"author_url":"https://blog.hatena.ne.jp/inamori/","categories":["JavaScript"],"author_name":"inamori"}