{"width":"100%","published":"2019-07-01 00:00:00","categories":["Ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2019%2F07%2F01%2F000000\" title=\"Ruby\u306e positive? \u3084 negative? \u306f0\u3092\u542b\u3081\u306a\u3044 - \u30b3\u30fc\u30c9\u65e5\u9032\u6708\u6b69\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"type":"rich","blog_url":"https://shinkufencer.hateblo.jp/","height":"190","blog_title":"\u30b3\u30fc\u30c9\u65e5\u9032\u6708\u6b69","author_url":"https://blog.hatena.ne.jp/shinkufencer/","author_name":"shinkufencer","provider_name":"Hatena Blog","url":"https://shinkufencer.hateblo.jp/entry/2019/07/01/000000","provider_url":"https://hatena.blog","title":"Ruby\u306e positive? \u3084 negative? \u306f0\u3092\u542b\u3081\u306a\u3044","description":"\u4ee5\u4e0a\u3067\u306f\u306a\u304f\u3001\u305d\u308c\u3088\u308a\u4e0a\u3002\u305d\u308a\u3083\u6587\u5b57\u901a\u308a\u306a\u3093\u3060\u3051\u3069\u3055\u30cd\u30bf\u3002 \u74b0\u5883 $ ruby -v ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin18] \u6319\u52d5 positive?\u3068negative? \u306f\u4ee5\u4e0b\u306e\u611f\u3058\u3002 1.positive? #=> true -1.positive? #=> false 0.positive? #=> false 1.negative? #=> false -1.negative? #=> true 0.negative? #=> false Float\u578b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3082\u53ef\u80fd 0.0001.\u2026","version":"1.0"}