📜  test valeurs 2 flottants python - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:11.246000             🧑  作者: Mango

代码示例1
>>> delta = 0.0001
>>> var = 3.0 - 2.7
>>> 0.3 - delta < var < 0.3 + delta
True
>>> abs(var - 0.3) < delta
True