<?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 › 関数 › here int関数を使用すると、小数点を含む数値の整数部を取り出すことができます。 $ret = int $num; 整数部というのは、小数から小数点以下の部分を取り除いた部分のことです。切り下げや切り上げとは異なります。たとえば「1.5」という小数の場合は、整数部は「1」です。また「-2.5」という小数の場合は、整数部は「-2」です。整数を渡した場合は、整数がそのまま返ってきます。 サンプル int関数を使用して、整数部を取り出すサンプルです。 use strict; use warnings; my $num1 = 1.5; my $num2 = -1.5; pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperlcodesample.hatenadiary.jp%2Fentry%2F20080923%2F1222149712&quot; title=&quot;int関数 - 小数から整数部を取り出す - 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-23 15:01:52</published>
  <title>int関数 - 小数から整数部を取り出す</title>
  <type>rich</type>
  <url>https://perlcodesample.hatenadiary.jp/entry/20080923/1222149712</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
