|
From: Rassokhin, D. [JRDUS] <DRA...@it...> - 2014-05-10 01:31:00
|
For example, this type of error is encountered at line 102 in NumericNode.cs (version 1.04 stable): return this.AsFloat() != 0.0f && this.AsFloat() != Single.NaN; The second part of the expression, this.AsFloat() != Single.NaN, will always return true, even when this.AsFloat() returns the Single.NaN. NaN does not equal to any floating-point number, including self. Use !Single.IsNan(this.AsFloat()) instead. I have found errors of this type in several other places throughout the source code. Please search for all usages of double.NaN, float.NaN, Double.NaN and Single.NaN. Regards, Dmitrii Rassokhin. |