{"author_name":"tmtms","image_url":null,"published":"2018-12-20 00:00:00","categories":["Ruby","Ruby2.6"],"author_url":"https://blog.hatena.ne.jp/tmtms/","blog_title":"tmtms \u306e\u30e1\u30e2","version":"1.0","width":"100%","title":"Ruby 2.6 \u306e\u5909\u66f4\u70b9 - Numeric, BigDecimal","url":"https://blog.tmtms.net/entry/201812/ruby26-numeric","type":"rich","blog_url":"https://blog.tmtms.net/","description":"Ruby2.6\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e20\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 qiita.com Numeric Numeric#step \u304c Enumerator::ArithmeticSequence \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059 BigDecimal BigDecimal.allocate \u524a\u9664 BigDecimal \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c frozen BigDecmial.new \u304c\u975e\u63a8\u5968 BigDecimal() \u306b :exception \u30aa\u30d7\u30b7\u30e7\u30f3\u8ffd\u52a0 nil.to_d \u304c 0.0 \u3092\u8fd4\u3059 BigDecimal() \u304c\u4e0d\u6b63\u306a\u6587\u5b57\u5217\u3067\u30a8\u30e9\u30fc BigDecimal.ver \u524a\u9664 Numeric Numeric#step \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F201812%2Fruby26-numeric\" title=\"Ruby 2.6 \u306e\u5909\u66f4\u70b9 - Numeric, BigDecimal - tmtms \u306e\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>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190"}