<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yamatai12</author_name>
  <author_url>https://blog.hatena.ne.jp/yamatai12/</author_url>
  <blog_title>iimon TECH BLOG</blog_title>
  <blog_url>https://tech.iimon.co.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは、iimonの山根です。 本記事はiimonアドベントカレンダー24日目の記事となります。 クリぼっち確定です、喉を痛めたのが原因なので本当はクリぼっち回避できましたよ😷 それでは本題に入ります。 背景 jsで10.12*10000が101199.99999999999になってしまいました。 このようになった理由を知り、正しく計算する方法を理解する為です。 なぜ JavaScript の数値 (Number) 型は IEEE 754 の倍精度 64ビットバイナリー形式です。 IEEE 754 の倍精度数 3 つの部分を表すのに 64 ビットを使用します。 倍精度浮動小数点数 (htt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.iimon.co.jp%2Fentry%2F2023%2F12%2F24%2F0950&quot; title=&quot;JavaScriptでの小数点の計算で誤差が出る件 - iimon TECH BLOG&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yamatai12/20231222/20231222115605.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-24 00:00:00</published>
  <title>JavaScriptでの小数点の計算で誤差が出る件</title>
  <type>rich</type>
  <url>https://tech.iimon.co.jp/entry/2023/12/24/0950</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
