<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uzimith</author_name>
  <author_url>https://blog.hatena.ne.jp/uzimith/</author_url>
  <blog_title>_blank</blog_title>
  <blog_url>https://uzimith.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>irbで簡単に変換できると便利なのでメモ。 １０進数から Integer#to_s(x)を用いると10進数からx進数に変換できます。 num.to_s(2) #2進数 num.to_s(16) #16進数 他にも &quot;%b&quot; % num #2進数 &quot;%x&quot; % num #16進数 でこの%文法的になんなのか分かんない(´・ω・`) 2,16進数から 返り値は10進数なので。 0xnum #16進数 0num #2進数 終わりに これを組み合わせれば誰でも簡単になんにでも変換できるでしょう(｀・ω・´)ｼｬｷｰﾝirb関数電卓便利すぎわろた。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuzimith.hateblo.jp%2Fentry%2F20110702%2F1309612696&quot; title=&quot;10,16,2進数相互変換 - _blank&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-07-02 22:18:16</published>
  <title>10,16,2進数相互変換</title>
  <type>rich</type>
  <url>https://uzimith.hateblo.jp/entry/20110702/1309612696</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
