{"blog_url":"https://python-remrin.hatenadiary.jp/","type":"rich","height":"190","width":"100%","description":"decimal\u30e2\u30b8\u30e5\u30fc\u30eb\u306eDecimal\u30af\u30e9\u30b9\u306f\u6570\u5024\u6f14\u7b97\u3067\u306e\u8aa4\u5dee\u3092\u56de\u907f\u3059\u308b\u30af\u30e9\u30b9\u3002 \u5c0f\u6570\u306e\u8a08\u7b97\u3067\u306f\u8aa4\u5dee\u304c\u751f\u3058\u308b\u3002 for i in range(10): print(i * 0.1) # 0.0 # 0.1 # 0.2 # 0.30000000000000004 # 0.4 # 0.5 # 0.6000000000000001 # 0.7000000000000001 # 0.8 # 0.9 Decimal\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u3068 from decimal import Decimal for i in range(10): print(i * Decimal(\"0.1\")) # 0.0 # 0.1 #\u2026","title":"decimal","provider_url":"https://hatena.blog","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/25/131136","published":"2017-05-25 13:11:36","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F25%2F131136\" title=\"decimal - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","categories":["\u30e9\u30a4\u30d6\u30e9\u30ea","python"],"provider_name":"Hatena Blog","author_name":"rare_Remrin","image_url":null,"version":"1.0"}