Upgrade to Pro — share decks privately, control downloads, hide ads and more …

小数の丸め誤差の話

 小数の丸め誤差の話

Niigata5分Tech #10の発表資料です。
https://niigata-5min-tech.connpass.com/event/324842/

circled9

July 26, 2024
Tweet

More Decks by circled9

Other Decks in Programming

Transcript

  1. ेਐ਺ͷখ਺Λೋਐ਺Ͱද͢ͷ͸೉͍͠ • ೋਐ਺ͷ੔਺ͷNܻ໨͸2ͷN-1৐ͷ஋ 1 1 1 1 = 15 8

    4 2 1 • Ұํɺೋਐ਺ͷখ਺ͷNܻ໨͸2ͷϚΠφεN-1৐ͷ஋ 0. 1 1 1 = 0.5 + 0.25 + 0.125 = 0.875 1 1/2 1/4 1/8 • 2ͷϚΠφεN৐ͷ૊Έ߹ΘͤͰਖ਼֬ʹදݱͰ͖Δ஋ʹ͸ݶք͕͋Δ 6
  2. 20

  3. 22