<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takeg</author_name>
  <author_url>https://blog.hatena.ne.jp/takeg/</author_url>
  <blog_title>ベスパリブ</blog_title>
  <blog_url>https://takeg.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Python3</anon>
  </categories>
  <description>何がやりたいかと端的に言うと、 30.100 =&gt; 30.1 30.000 =&gt; 30 のようにしたい。 Decimalモジュールを使う 小数点といえばDecimalなので、Decimalモジュールを探したらそれっぽいDecimal.normalizeがありました。 数値を正規化 (normalize) して、右端に連続しているゼロを除去し、 Decimal('0') と同じ結果はすべて Decimal('0e0') に変換します。等価クラスの属性から基準表現を生成する際に用います。たとえば、 Decimal('32.100') と Decimal('0.321000e+2') の正規化は、い…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakeg.hatenadiary.jp%2Fentry%2F2019%2F11%2F29%2F220817&quot; title=&quot;小数点以下の不要な0を除去したい(Python) - ベスパリブ&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>2019-11-29 22:08:17</published>
  <title>小数点以下の不要な0を除去したい(Python)</title>
  <type>rich</type>
  <url>https://takeg.hatenadiary.jp/entry/2019/11/29/220817</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
