<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Elixir</anon>
    <anon>めも</anon>
  </categories>
  <description>Elixir で文字列から数値に変換するときに String.to_integer/1 や String.to_float/1 を使いますが、前者は浮動小数点数値の文字列を与えると、後者は整数値の文字列を与えると例外を投げてしまいます。 iex(1)&gt; String.to_integer(&quot;123&quot;) 123 iex(2)&gt; String.to_integer(&quot;123.4&quot;) ** (ArgumentError) argument error :erlang.binary_to_integer(&quot;123.4&quot;) iex(2)&gt; String.to_float(&quot;123.4&quot;) 123.4 i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F2018%2F02%2F25%2F213743&quot; title=&quot;整数値でも浮動小数点数値でもパースしたい - エンジニアのソフトウェア的愛情&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>https://images-fe.ssl-images-amazon.com/images/I/61tnmDwk7rL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-25 21:37:43</published>
  <title>整数値でも浮動小数点数値でもパースしたい</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/2018/02/25/213743</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
