【发布时间】:2022-01-17 07:24:53
【问题描述】:
当 Mathf.Approximately 给出 true 时,有人可以举一个最简单的例子吗?
尝试以下,总是错误的:
Debug.Log(Mathf.Approximately(0.0001f, 0.0f)); // False
Debug.Log(Mathf.Approximately(0.00000001f, 0.0f)); // False
Debug.Log(Mathf.Approximately(0.00000000000001f, 0.0f)); // False
【问题讨论】:
标签: c# unity3d precision equals