|
From: Rob V. <rv...@do...> - 2014-05-16 12:13:37
|
Thanks for reporting this This has been tracked as CORE-412 (http://dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=412) and is fixed in default and will be included in our next release Thanks, Rob From: "Rassokhin, Dmitrii [JRDUS]" <DRA...@it...> Reply-To: dotNetRDF Bug Report tracking and resolution <dot...@li...> Date: Saturday, 10 May 2014 02:30 To: "dot...@li..." <dot...@li...> Subject: [dotNetRDF-bugs] incorrect usage of Single.NaN and Double.NaN constants in numeric comparisons > 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. > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs_______________________________________________ > dotNetRDF-bugs mailing list dot...@li... > https://lists.sourceforge.net/lists/listinfo/dotnetrdf-bugs |