<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>ruby</anon>
  </categories>
  <description>shuzo-kino.hateblo.jp 他のLLと同様、PythonのRoundメソッドも負の値を与えると整数部分の切り上げにつかえます。 しかも、整数か小数点持ちかで結果をちゃんと切り分けてくれる親切仕様。 実際のところ round(2018,-2) # 2000 round(2018.0,-2) # 2000.0 蛇足：Rubyだと数字に紐付いたメソッド 久しぶりに書いたら混乱したので……Rubyだと数字に紐付いたメソッドです 組み込み関数ではないので注意（ 2018.round(-2) # =&gt; 2000 2018.01.round(-2) # =&gt; 2000 # こっちは小数点ごと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2018%2F04%2F18%2F231825&quot; title=&quot;PythonのRoundメソッドも整数部分の切り上げにつかえる - Bye Bye Moore&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-18 23:18:25</published>
  <title>PythonのRoundメソッドも整数部分の切り上げにつかえる</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2018/04/18/231825</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
