<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>box406</author_name>
  <author_url>https://blog.hatena.ne.jp/box406/</author_url>
  <blog_title>ロックとチュウーハイとこりんがるな日々</blog_title>
  <blog_url>https://box406.hatenablog.com/</blog_url>
  <categories>
    <anon>presto</anon>
    <anon>割り算</anon>
    <anon>整数</anon>
  </categories>
  <description>prestoで整数同士の割り算を行う整数が返却される場合は良いが以下のような場合に0が返却される select (10 / 5); 予想される値は 0.5 だが prestoの場合は 0 が返却されてしまう 正常に0.5 を返却してもらうためには以下のようにする必要がある select (10 * 1.0 / 5); もしくは以下のようにする select (cast(5 as DOUBLE) / 10);</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbox406.hatenablog.com%2Fentry%2F2017%2F03%2F24%2F162252&quot; title=&quot;prestoで整数同士の割り算をすると整数が返される問題の解決方法 - ロックとチュウーハイとこりんがるな日々&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>2017-03-24 16:22:52</published>
  <title>prestoで整数同士の割り算をすると整数が返される問題の解決方法</title>
  <type>rich</type>
  <url>https://box406.hatenablog.com/entry/2017/03/24/162252</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
