C#判断浮点数是否为0

xiaoxiao2021-02-27  158

using System;

public const float PRECISION = 0.000001f;  

Math.Abs(agent.remainingDistance) > PRECISION  

为true则不等于0

转载请注明原文地址: https://www.6miu.com/read-14482.html

最新回复(0)