<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>NCalc - Mathematical Expressions Evaluator for .NET</title><link>http://ncalc.codeplex.com/Project/ProjectRss.aspx</link><description>NCalc is a mathematical expressions evaluator in .NET. NCalc can parse any expression and evaluate the result, including static or dynamic parameters and custom functions.</description><item><title>Created Issue: Comparison of dates throws exception [25392]</title><link>http://ncalc.codeplex.com/WorkItem/View.aspx?WorkItemId=25392</link><description>Try this expression&amp;#58; &amp;#35;11&amp;#47;18&amp;#47;2009&amp;#35;&amp;#61;&amp;#61;&amp;#35;11&amp;#47;19&amp;#47;2009&amp;#35;&lt;br /&gt;Get this exception&amp;#58; Invalid cast from &amp;#39;System.DateTime&amp;#39; to &amp;#39;System.RuntimeType&amp;#39;.&lt;br /&gt;&lt;br /&gt;I find this happens when doing any date comparison.&lt;br /&gt;</description><author>benark</author><pubDate>Wed, 18 Nov 2009 22:31:25 GMT</pubDate><guid isPermaLink="false">Created Issue: Comparison of dates throws exception [25392] 20091118103125P</guid></item><item><title>New Post: Parsing expressions not done correctly</title><link>http://ncalc.codeplex.com/Thread/View.aspx?ThreadId=74776</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thank you for this information. I have corrected it and published version 1.3.2. (Both issues)&lt;/p&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Wed, 11 Nov 2009 17:09:02 GMT</pubDate><guid isPermaLink="false">New Post: Parsing expressions not done correctly 20091111050902P</guid></item><item><title>Updated Release: NCalc - 1.3.2 (nov. 11, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35772</link><description>&lt;div class="wikidoc"&gt;BUG: Major issue corrected with precedence (again, thanks to Keze). &lt;br /&gt;BUG: Use double values when using the / operator, in order to prevent percision loss&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Wed, 11 Nov 2009 17:07:44 GMT</pubDate><guid isPermaLink="false">Updated Release: NCalc - 1.3.2 (nov. 11, 2009) 20091111050744P</guid></item><item><title>Released: NCalc - 1.3.2 (Nov 11, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35772</link><description>&lt;div&gt;BUG: Major issue corrected with precedence (again, thanks to Keze). &lt;br&gt;BUG: Use double values when using the / operator, in order to prevent percision loss&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</description><author></author><pubDate>Wed, 11 Nov 2009 17:07:44 GMT</pubDate><guid isPermaLink="false">Released: NCalc - 1.3.2 (Nov 11, 2009) 20091111050744P</guid></item><item><title>Updated Release: NCalc - 1.3.2 (Jan 01, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35772</link><description>&lt;div class="wikidoc"&gt;BUG: Major issue corrected with precedence (again, thanks to Keze). &lt;br /&gt;BUG: Use double values when using the / operator, in order to prevent percision loss&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Wed, 11 Nov 2009 17:06:56 GMT</pubDate><guid isPermaLink="false">Updated Release: NCalc - 1.3.2 (Jan 01, 2009) 20091111050656P</guid></item><item><title>Created Release: NCalc - 1.3.2 (Jan 01, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35772</link><description>&lt;div class="wikidoc"&gt;BUG: Major issue corrected with precedence (again, thanks to Keze). &lt;br /&gt;BUG: Use double values when using the / operator, in order to prevent percision loss&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Wed, 11 Nov 2009 17:06:31 GMT</pubDate><guid isPermaLink="false">Created Release: NCalc - 1.3.2 (Jan 01, 2009) 20091111050631P</guid></item><item><title>New Post: Parsing expressions not done correctly</title><link>http://ncalc.codeplex.com/Thread/View.aspx?ThreadId=74776</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I guess there is a problem with gramar file.&lt;/p&gt;
&lt;p&gt;Expression&amp;nbsp; 18/2/2*3 is parsed like 18/(2/(2*3)) and not like ((18/2)/2)*3&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Other problem i'm running to is when dividing two integers and the second one is less than first it returns 0 (also integer),&lt;/p&gt;
&lt;p&gt;e.g.&amp;nbsp; 3/6 = 0&lt;/p&gt;
&lt;p&gt;Is it possible to return 0.5 (float)?&lt;/p&gt;&lt;/div&gt;</description><author>keze</author><pubDate>Wed, 11 Nov 2009 13:25:48 GMT</pubDate><guid isPermaLink="false">New Post: Parsing expressions not done correctly 20091111012548P</guid></item><item><title>Closed Issue: Multiplication behavior [25202]</title><link>http://ncalc.codeplex.com/WorkItem/View.aspx?WorkItemId=25202</link><description>In version 1.3 of NCalc, the expression 2&amp;#42;2&amp;#42;2&amp;#42;2 produces the value 4.  Is there a way to avoid this behavior other than 2&amp;#42;&amp;#40;2&amp;#42;&amp;#40;2&amp;#42;2&amp;#41;&amp;#41;&amp;#41; &amp;#63;&lt;br /&gt;Comments: &lt;p&gt;THANK YOU &amp;#33;&amp;#33;&amp;#33;&lt;/p&gt;&lt;p&gt;Are you the only one to have tried this framework &amp;#59;&amp;#41; I can&amp;#39;t imagine such a bug, but actually it was there.&lt;/p&gt;&lt;p&gt;I have published the corrected version, i.e. NCalc 1.3.1&lt;/p&gt;</description><author>sebastienros</author><pubDate>Tue, 03 Nov 2009 16:53:03 GMT</pubDate><guid isPermaLink="false">Closed Issue: Multiplication behavior [25202] 20091103045303P</guid></item><item><title>Updated Release: NCalc - 1.3.1 (nov. 03, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35374</link><description>&lt;div class="wikidoc"&gt;BUG: Major issue corrected with precedence. Could not imagine a so predictable issue to occur ! Shame on me. No test was checking it !!!&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 03 Nov 2009 16:51:26 GMT</pubDate><guid isPermaLink="false">Updated Release: NCalc - 1.3.1 (nov. 03, 2009) 20091103045126P</guid></item><item><title>Released: NCalc - 1.3.1 (Nov 03, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35374</link><description>&lt;div&gt;BUG: Major issue corrected with precedence. Could not imagine a so predictable issue to occur ! Shame on me. No test was checking it !!!&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</description><author></author><pubDate>Tue, 03 Nov 2009 16:51:26 GMT</pubDate><guid isPermaLink="false">Released: NCalc - 1.3.1 (Nov 03, 2009) 20091103045126P</guid></item><item><title>Updated Release: NCalc - 1.3.1 (Jan 01, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35374</link><description>&lt;div class="wikidoc"&gt;BUG: Major issue corrected with precedence. Could not imagine a so predictable issue to occur ! Shame on me. No test was checking it !!!&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 03 Nov 2009 16:50:38 GMT</pubDate><guid isPermaLink="false">Updated Release: NCalc - 1.3.1 (Jan 01, 2009) 20091103045038P</guid></item><item><title>Created Release: NCalc - 1.3.1 (Jan 01, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35374</link><description>&lt;div class="wikidoc"&gt;BUG: Major issue corrected with precedence. Could not imagine a so predictable issue to occur ! Shame on me. No test was checking it !!!&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 03 Nov 2009 16:50:17 GMT</pubDate><guid isPermaLink="false">Created Release: NCalc - 1.3.1 (Jan 01, 2009) 20091103045017P</guid></item><item><title>Created Issue: Multiplication behavior [25202]</title><link>http://ncalc.codeplex.com/WorkItem/View.aspx?WorkItemId=25202</link><description>In version 1.3 of NCalc, the expression 2&amp;#42;2&amp;#42;2&amp;#42;2 produces the value 4.  Is there a way to avoid this behavior other than 2&amp;#42;&amp;#40;2&amp;#42;&amp;#40;2&amp;#42;2&amp;#41;&amp;#41;&amp;#41; &amp;#63;&lt;br /&gt;</description><author>wujonesj2</author><pubDate>Tue, 03 Nov 2009 15:36:01 GMT</pubDate><guid isPermaLink="false">Created Issue: Multiplication behavior [25202] 20091103033601P</guid></item><item><title>Updated Wiki: operators</title><link>http://ncalc.codeplex.com/wikipage?title=operators&amp;version=5</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Operators&lt;/h1&gt;
Expressions can be combined using operators. Each operator as a precedence priority. Here is the list of those expression's priority.
&lt;ol&gt;&lt;li&gt;primary&lt;/li&gt;
&lt;li&gt;unary&lt;/li&gt;
&lt;li&gt;power&lt;/li&gt;
&lt;li&gt;multiplicative&lt;/li&gt;
&lt;li&gt;additive&lt;/li&gt;
&lt;li&gt;relational &lt;/li&gt;
&lt;li&gt;logical&lt;/li&gt;&lt;/ol&gt;

&lt;h2&gt;Logical&lt;/h2&gt;
These operators can do some logical comparison between other expressions:
&lt;ul&gt;&lt;li&gt;or, ||&lt;/li&gt;
&lt;li&gt;and, &amp;amp;&amp;amp;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  true or false and true
&lt;/pre&gt;&lt;br /&gt;The &lt;b&gt;and&lt;/b&gt; operator has more prioroty thand the &lt;b&gt;or&lt;/b&gt;, thus in the example above, &lt;b&gt;false and true&lt;/b&gt; is evaluated first.&lt;br /&gt;
&lt;h2&gt;Relational&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;=, ==, !=, &amp;lt;&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;, &amp;lt;=, &amp;gt;, &amp;gt;=&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  1 &amp;lt; 2
&lt;/pre&gt;
&lt;h2&gt;Additive&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;+, -&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  1 + 2 - 3
&lt;/pre&gt;
&lt;h2&gt;Multiplicative&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;*, /, %&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
 1 * 2 % 3
&lt;/pre&gt;
&lt;h2&gt;Bitwise&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&amp;amp; (bitwise and), | (bitwise or), ^(bitwise xor), &amp;lt;&amp;lt; (left shift), &amp;gt;&amp;gt;(right shift)&lt;/li&gt;&lt;/ul&gt;
&lt;pre&gt;
  2 &amp;gt;&amp;gt; 3
&lt;/pre&gt;
&lt;h2&gt;Unary&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;!, not, -, ~ (bitwise not)&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  not true
&lt;/pre&gt;
&lt;h2&gt;Primary&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;(, )&lt;/li&gt;
&lt;li&gt;&lt;a href="http://ncalc.codeplex.com/wikipage?title=values&amp;referringTitle=operators"&gt;values&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  2 * ( 3 + 2 )
&lt;/pre&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 27 Oct 2009 14:27:10 GMT</pubDate><guid isPermaLink="false">Updated Wiki: operators 20091027022710P</guid></item><item><title>Updated Wiki: operators</title><link>http://ncalc.codeplex.com/wikipage?title=operators&amp;version=4</link><description>&lt;div class="wikidoc"&gt;&lt;h1&gt;Operators&lt;/h1&gt;
Expressions can be combined using operators. Each operator as a precedence priority. Here is the list of those expression's priority.
&lt;ol&gt;&lt;li&gt;primary&lt;/li&gt;
&lt;li&gt;unary&lt;/li&gt;
&lt;li&gt;power&lt;/li&gt;
&lt;li&gt;multiplicative&lt;/li&gt;
&lt;li&gt;additive&lt;/li&gt;
&lt;li&gt;relational &lt;/li&gt;
&lt;li&gt;logical&lt;/li&gt;&lt;/ol&gt;

&lt;h2&gt;Logical&lt;/h2&gt;
These operators can do some logical comparison between other expressions:
&lt;ul&gt;&lt;li&gt;or, ||&lt;/li&gt;
&lt;li&gt;and, &amp;amp;&amp;amp;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  true or false and true
&lt;/pre&gt;&lt;br /&gt;The &lt;b&gt;and&lt;/b&gt; operator has more prioroty thand the &lt;b&gt;or&lt;/b&gt;, thus in the example above, &lt;b&gt;false and true&lt;/b&gt; is evaluated first.&lt;br /&gt;
&lt;h2&gt;Relational&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;=, ==, !=, &amp;lt;&amp;gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;, &amp;lt;=, &amp;gt;, &amp;gt;=&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  1 &amp;lt; 2
&lt;/pre&gt;
&lt;h2&gt;Additive&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;+, -&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  1 + 2 - 3
&lt;/pre&gt;
&lt;h2&gt;Multiplicative&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;*, /, %&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
 1 * 2 % 3
&lt;/pre&gt;
&lt;h2&gt;Bitwise&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&amp;amp; (bitwsie and), | (bitwise or), ^(bitwise xor), &amp;lt;&amp;lt; (left shift), &amp;gt;&amp;gt;(right shift)&lt;/li&gt;&lt;/ul&gt;
&lt;pre&gt;
  2 &amp;gt;&amp;gt; 3
&lt;/pre&gt;
&lt;h2&gt;Unary&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;!, not, -, ~ (bitwise not)&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  not true
&lt;/pre&gt;
&lt;h2&gt;Primary&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;(, )&lt;/li&gt;
&lt;li&gt;&lt;a href="http://ncalc.codeplex.com/wikipage?title=values&amp;referringTitle=operators"&gt;values&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;&lt;pre&gt;
  2 * ( 3 + 2 )
&lt;/pre&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 27 Oct 2009 14:26:52 GMT</pubDate><guid isPermaLink="false">Updated Wiki: operators 20091027022652P</guid></item><item><title>Updated Release: NCalc - 1.3.0 (oct. 27, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35026</link><description>&lt;div class="wikidoc"&gt;NEW: Bitwise operators (&amp;amp;, |, ^, ~, &amp;lt;&amp;lt;, &amp;gt;&amp;gt;).&lt;br /&gt;BREAK: Removed power operator, use Pow(x,y) instead.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 27 Oct 2009 13:08:12 GMT</pubDate><guid isPermaLink="false">Updated Release: NCalc - 1.3.0 (oct. 27, 2009) 20091027010812P</guid></item><item><title>Released: NCalc - 1.3.0 (Oct 27, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35026</link><description>&lt;div&gt;NEW: Bitwise operators (&amp;amp;, |, ^, ~, &amp;lt;&amp;lt;, &amp;gt;&amp;gt;).&lt;br&gt;BREAK: Removed power operator, use Pow(x,y) instead.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</description><author></author><pubDate>Tue, 27 Oct 2009 13:08:12 GMT</pubDate><guid isPermaLink="false">Released: NCalc - 1.3.0 (Oct 27, 2009) 20091027010812P</guid></item><item><title>Updated Release: NCalc - 1.3.0 (Jan 01, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35026</link><description>&lt;div class="wikidoc"&gt;NEW: Bitwise operators (&amp;amp;, |, ^, ~, &amp;lt;&amp;lt;, &amp;gt;&amp;gt;).&lt;br /&gt;BREAK: Removed power operator, use Pow(x,y) instead.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 27 Oct 2009 13:06:49 GMT</pubDate><guid isPermaLink="false">Updated Release: NCalc - 1.3.0 (Jan 01, 2009) 20091027010649P</guid></item><item><title>Created Release: NCalc - 1.3.0 (Jan 01, 2009)</title><link>http://ncalc.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=35026</link><description>&lt;div class="wikidoc"&gt;NEW: Bitwise operators (&amp;amp;, |, ^, ~, &amp;lt;&amp;lt;, &amp;gt;&amp;gt;).&lt;br /&gt;BREAK: Removed power operator, use Pow(x,y) instead.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>sebastienros</author><pubDate>Tue, 27 Oct 2009 13:06:18 GMT</pubDate><guid isPermaLink="false">Created Release: NCalc - 1.3.0 (Jan 01, 2009) 20091027010618P</guid></item><item><title>New Post: Call for feedback !</title><link>http://ncalc.codeplex.com/Thread/View.aspx?ThreadId=64384</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;But lets suppose I'm using this is a long-running system. The system needs to evaluate many different expressions. Some may be identical, but yet some may only be used once. If the cache does not have the ability to remove objects that have not been used, and keep the most regularly-used ones, then eventutally, the cache will use too much memory.&lt;/p&gt;
&lt;p&gt;ASP.NET cache has the ability to mange this much better. You could right your own one with the same sophistication, but wouldn't it be better to program to an interface, and let the users to select the implementation&amp;nbsp;(or write their own).&lt;/p&gt;
&lt;p&gt;Lee&lt;/p&gt;&lt;/div&gt;</description><author>leeatkinson</author><pubDate>Mon, 21 Sep 2009 11:05:52 GMT</pubDate><guid isPermaLink="false">New Post: Call for feedback ! 20090921110552A</guid></item></channel></rss>