浮点数计算示例网站

该网站展示了不同编程语言中浮点数计算的差异,并解释了导致0.1 + 0.2不等于0.3等现象的原因。

Check out 浮点数计算示例网站 on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

https://0.30000000000000004.com/这个网站展示了不同语言(或者版本)中浮点数计算示例,并解释了造成这一现象的原因。来源于Twitter上BrendanEich回答为什么javascript中0.4 + 0.2 不等于 0.6的提问:https://twitter.com/ThainBBdL/status/1164505862905487366