<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Let&#8217;s patch: Fun with Scientific Notation!</title> <atom:link href="http://blog.enigmaticthought.com/2009/08/sdk-16241/feed/" rel="self" type="application/rss+xml" /><link>http://blog.enigmaticthought.com/2009/08/sdk-16241/</link> <description>import com.enigmaticThought.blog;</description> <lastBuildDate>Thu, 30 Jun 2011 09:13:09 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>By: Paul</title><link>http://blog.enigmaticthought.com/2009/08/sdk-16241/comment-page-1/#comment-350</link> <dc:creator>Paul</dc:creator> <pubDate>Wed, 19 May 2010 21:30:30 +0000</pubDate> <guid
isPermaLink="false">http://enigmaticthought.com/?p=204#comment-350</guid> <description>Is there a bug with NumberValidator as well?  For large numbers I think its generating an &quot;invalidChar&quot; result due to an&quot;e&quot; in the exponential notation representation of the number.</description> <content:encoded><![CDATA[<p>Is there a bug with NumberValidator as well?  For large numbers I think its generating an &#8220;invalidChar&#8221; result due to an&#8221;e&#8221; in the exponential notation representation of the number.</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://blog.enigmaticthought.com/2009/08/sdk-16241/comment-page-1/#comment-348</link> <dc:creator>Tim</dc:creator> <pubDate>Thu, 06 May 2010 22:19:59 +0000</pubDate> <guid
isPermaLink="false">http://enigmaticthought.com/?p=204#comment-348</guid> <description>I found a similar bug recently with CurrencyFormatter. I have a grid that has a column of currency in it with a sum at the bottom. We recently ran into a case where the sum should have been $0, but was coming out at -$13. After some digging I figured out that floating point error was causing the sum to come out to 2.2737367544323206e-13. That number was then being converted to a string, which was then passed into CurrencyFormatter.format(). Because it&#039;s a string it ends up in NumberBase.parseNumberString() which obviously can&#039;t handle scientific notation because it returns a -13. Craziness.</description> <content:encoded><![CDATA[<p>I found a similar bug recently with CurrencyFormatter. I have a grid that has a column of currency in it with a sum at the bottom. We recently ran into a case where the sum should have been $0, but was coming out at -$13. After some digging I figured out that floating point error was causing the sum to come out to 2.2737367544323206e-13. That number was then being converted to a string, which was then passed into CurrencyFormatter.format(). Because it&#8217;s a string it ends up in NumberBase.parseNumberString() which obviously can&#8217;t handle scientific notation because it returns a -13. Craziness.</p> ]]></content:encoded> </item> <item><title>By: Matt C</title><link>http://blog.enigmaticthought.com/2009/08/sdk-16241/comment-page-1/#comment-222</link> <dc:creator>Matt C</dc:creator> <pubDate>Sun, 23 Aug 2009 01:42:56 +0000</pubDate> <guid
isPermaLink="false">http://enigmaticthought.com/?p=204#comment-222</guid> <description>FYI, I updated the patch with a fix for both positive and negative exponents</description> <content:encoded><![CDATA[<p>FYI, I updated the patch with a fix for both positive and negative exponents</p> ]]></content:encoded> </item> <item><title>By: Jenn</title><link>http://blog.enigmaticthought.com/2009/08/sdk-16241/comment-page-1/#comment-198</link> <dc:creator>Jenn</dc:creator> <pubDate>Tue, 18 Aug 2009 19:08:14 +0000</pubDate> <guid
isPermaLink="false">http://enigmaticthought.com/?p=204#comment-198</guid> <description>Yes, the correct expanded notation is .0009870.   The 98.70 that i referred to was the end result i wanted to be displayed to the user.</description> <content:encoded><![CDATA[<p>Yes, the correct expanded notation is .0009870.   The 98.70 that i referred to was the end result i wanted to be displayed to the user.</p> ]]></content:encoded> </item> <item><title>By: Matt C</title><link>http://blog.enigmaticthought.com/2009/08/sdk-16241/comment-page-1/#comment-197</link> <dc:creator>Matt C</dc:creator> <pubDate>Tue, 18 Aug 2009 18:33:54 +0000</pubDate> <guid
isPermaLink="false">http://enigmaticthought.com/?p=204#comment-197</guid> <description>You&#039;re right, I missed the decimal cases because I was only looking at large numbers.  I&#039;ll have to modify the patch to work with lower numbers.
Shouldn&#039;t the result be .0009870 though?</description> <content:encoded><![CDATA[<p>You&#8217;re right, I missed the decimal cases because I was only looking at large numbers.  I&#8217;ll have to modify the patch to work with lower numbers.</p><p>Shouldn&#8217;t the result be .0009870 though?</p> ]]></content:encoded> </item> </channel> </rss>
