<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>perlcodesample</author_name>
  <author_url>https://blog.hatena.ne.jp/perlcodesample/</author_url>
  <blog_title>Perl入門ゼミ</blog_title>
  <blog_url>https://perlcodesample.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Perl › 進数変換 Perlで「進数変換」を行う方法を解説します。 10進数から2進数、8進数、16進数への変換 10進数から2進数、8進数、16進数に変換してみましょう。sprintf関数でフォーマット指定を使います。 # 2進文字列に変換 my $bit_str = sprintf(&quot;%b&quot;, $num); # 8進文字列に変換 my $oct_str = sprintf(&quot;%o&quot;, $num); # 16進文字列に変換 my $hex_str = sprintf(&quot;%X&quot;, $num); 10進文字列を2進数に変換するには、sprintf関数でフォーマット指定で &quot;%b&quot;とします。8…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20080901%2F1220265719&quot; title=&quot;2進数、8進数、16進数の進数変換 - Perl入門ゼミ&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>2008-09-01 19:41:59</published>
  <title>2進数、8進数、16進数の進数変換</title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20080901/1220265719</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
