{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmatsubi0526.hatenablog.com%2Fentry%2F2025%2F03%2F08%2F105805\" title=\"Ruby\u306b\u304a\u3051\u308bString#to_i\u306e\u6319\u52d5 - matsubi0526\u306e\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/matsubi0526/","title":"Ruby\u306b\u304a\u3051\u308bString#to_i\u306e\u6319\u52d5","published":"2025-03-08 10:58:05","version":"1.0","type":"rich","height":"190","author_name":"matsubi0526","categories":[],"provider_name":"Hatena Blog","image_url":null,"description":"Ruby\u3067\u6587\u5b57\u5217\u3092\u6574\u6570\u306b\u5909\u63db\u3059\u308b\u306b\u306f String#to_i \u3092\u4f7f\u3044\u307e\u3059\u3088\u306d\u3002 str = \"20\" p str.to_i #=> 20 \u3067\u306f\u3001\u3067\u305f\u3089\u3081\u306a\u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066 String#to_i \u3092\u7528\u3044\u308b\u3068\u3069\u3046\u306a\u308b\u304b\u3068\u3044\u3046\u3068\u3001 str = \"hoge\" p str.to_i #=> 0 \u306a\u3093\u30680\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067\u3059\u3002\u3053\u308c\u306fRuby\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u898b\u308b\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001 \u6587\u5b57\u5217\u3092 10 \u9032\u6570\u8868\u73fe\u3055\u308c\u305f\u6574\u6570\u3067\u3042\u308b\u3068\u89e3\u91c8\u3057\u3066\u3001\u6574\u6570\u306b\u5909\u63db\u3059\u308b \u3068\u3042\u308a\u307e\u3059\u3002\u6574\u6570\u306b\u5909\u63db\u3067\u304d\u306a\u3044\u6587\u5b57\u5217\u306b\u5bfe\u3057\u3066\u3001\u3082\u3057\u4f8b\u5916\u3092\u767a\u751f\u3055\u305b\u308b\u306b\u306f\u3001Kernel.#Integer \u3092\u4f7f\u3048\u3070\u3088\u3044\u307f\u305f\u3044\u3067\u3059\u3002 str = \"hoge\" Inte\u2026","url":"https://matsubi0526.hatenablog.com/entry/2025/03/08/105805","blog_url":"https://matsubi0526.hatenablog.com/","blog_title":"matsubi0526\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","width":"100%"}