<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>VBScirpt,WSH,バッチ</anon>
  </categories>
  <description>VBScriptで下記のようなコードを書きました。 MsgBox 1.5 Mod 1 しかし、表示されるのは 0 です。 本来なら、0.5 とならないといけないですが。。。 Mod 演算子を見たら驚愕の事実が。。 結果が浮動小数点数の時は整数に丸められるようですorz 整数かどうか判断するのに使いたかったのですが、ダメですね。 どうやらVB6でも同様のようです。 結局下記のように値を増やして対応するしかないですかね。。 MsgBox 1.5*1000 Mod 1000 これでも、小数第四位より深い桁以降は判定できなくなりますが。。。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2011%2F07%2F10%2F232000&quot; title=&quot;VBScriptのModの結果は小数点以下を返さない!? - 3流プログラマのメモ書き&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-10 23:20:00</published>
  <title>VBScriptのModの結果は小数点以下を返さない!?</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2011/07/10/232000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
