{"type":"rich","provider_name":"Hatena Blog","version":"1.0","image_url":null,"provider_url":"https://hatena.blog","title":" Math::Round","published":"2007-06-24 00:00:00","description":"\u3053\u3053\u3089\u8fba\u306e\u8a71\u3092\u8aad\u307f\u306a\u304c\u3089Perl\u3063\u3066round\u95a2\u6570\u306a\u3044\u3088\u306a\u3042\u3068\u601d\u3063\u3066\u3044\u305f\u3093\u3060\u3051\u3069\uff0cCPAN\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u3063\u305f\uff0e\u305d\u308c\u304cMath::Round\u306a\u3093\u3060\u3051\u3069\u3082\uff0c\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068php\u3068\u4f3c\u305f\u3088\u3046\u306a\u5b9a\u6570\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\uff0e $Math::Round::half = 0.50000000000008; sub round { my $x; my @res = map { if ($_ >= 0) { POSIX::floor($_ + $Math::Round::half); } else { POSIX::ceil($_ - $Math::Round::half); } } @_; re\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboscono.hatenablog.com%2Fentry%2F20070624%2Fp1\" title=\" Math::Round - \u3066\u304d\u3068\u3046\u306a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://boscono.hatenablog.com/","height":"190","author_url":"https://blog.hatena.ne.jp/boscono/","width":"100%","url":"https://boscono.hatenablog.com/entry/20070624/p1","blog_title":"\u3066\u304d\u3068\u3046\u306a\u30e1\u30e2","author_name":"boscono","categories":["Perl"]}