<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haiju</author_name>
  <author_url>https://blog.hatena.ne.jp/haiju/</author_url>
  <blog_title>haiju's 開発メモ</blog_title>
  <blog_url>https://haiju.hatenablog.com/</blog_url>
  <categories>
    <anon>自分用メモ</anon>
    <anon>tips</anon>
    <anon>xampp</anon>
    <anon>Win10</anon>
    <anon>PHP</anon>
  </categories>
  <description>昨日は、PHPで小数点ありの数値を比較/計算するには、 gmp関数やBC Math関数を使うという事実を知って、BC Math関数 を使ってコードを実装していたけど、もう少し詳しく追って いきたいので、学習の参考になりそうなサイトについてメモしていく。 ここで、注意することは引数は数値型文字列を使うということ なので、適宜、「''」で括るか、strval()を使うなどして文字列化する 必要がある。数値をそのまま指定するとBC Math関数に送られる前に 誤差が生じるらしいとのこと(Φω｜ [参考サイト] riptutorial.com riptutorial.coｍ riptutorial.c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhaiju.hatenablog.com%2Fentry%2F2019%2F10%2F31%2F094531&quot; title=&quot;PHPで小数演算を扱うためにBC Math関数の使い方と学習の参考になりそうなサイト - haiju&amp;#39;s 開発メモ&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>2019-10-31 09:45:31</published>
  <title>PHPで小数演算を扱うためにBC Math関数の使い方と学習の参考になりそうなサイト</title>
  <type>rich</type>
  <url>https://haiju.hatenablog.com/entry/2019/10/31/094531</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
