<?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: Number.toString bug</title>
	<atom:link href="http://www.flexer.info/2008/11/20/numbertostring-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2008/11/20/numbertostring-bug/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Fri, 12 Mar 2010 00:18:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Annely</title>
		<link>http://www.flexer.info/2008/11/20/numbertostring-bug/comment-page-1/#comment-1751</link>
		<dc:creator>Annely</dc:creator>
		<pubDate>Fri, 20 Nov 2009 13:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=326#comment-1751</guid>
		<description>Same Problem in Flex 2.0
I get per Http-XML som strings. One of them is a numberstring: 712041237133483101. I can see them in xml. By displaying that string in a textinput it shows 712041237133483100.
Its only a string. I can&#039;t change the Http-XML, so I have to find a workaround that the string will display as a string and not as a wrong number...
Have anybody a idee?
Thanks!</description>
		<content:encoded><![CDATA[<p>Same Problem in Flex 2.0<br />
I get per Http-XML som strings. One of them is a numberstring: 712041237133483101. I can see them in xml. By displaying that string in a textinput it shows 712041237133483100.<br />
Its only a string. I can&#8217;t change the Http-XML, so I have to find a workaround that the string will display as a string and not as a wrong number&#8230;<br />
Have anybody a idee?<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://www.flexer.info/2008/11/20/numbertostring-bug/comment-page-1/#comment-1622</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 02 Jun 2009 09:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=326#comment-1622</guid>
		<description>Same Problem here:
I get a Number from a Webservice: 371640000000009984
Make it to String and get: 371640000000010000
If I look at the Max_Value: 9223372036854775807 everything should be fine.
Other way around: a String: 371640000000009984 to a Number --&gt; everything fine no &quot;rounding&quot; problem.

I look for a workaround (perhaps getting a String from the Webservice instead)....</description>
		<content:encoded><![CDATA[<p>Same Problem here:<br />
I get a Number from a Webservice: 371640000000009984<br />
Make it to String and get: 371640000000010000<br />
If I look at the Max_Value: 9223372036854775807 everything should be fine.<br />
Other way around: a String: 371640000000009984 to a Number &#8211;&gt; everything fine no &#8220;rounding&#8221; problem.</p>
<p>I look for a workaround (perhaps getting a String from the Webservice instead)&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virgil Cristea</title>
		<link>http://www.flexer.info/2008/11/20/numbertostring-bug/comment-page-1/#comment-935</link>
		<dc:creator>Virgil Cristea</dc:creator>
		<pubDate>Thu, 20 Nov 2008 12:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=326#comment-935</guid>
		<description>Int cannot store that value I needed. I do not think it is a floating point error as in debug I see the correct value set up in the &lt;b&gt;numberVariable&lt;/b&gt;. The problem appears only when I do &lt;b&gt;toString()&lt;/b&gt;.</description>
		<content:encoded><![CDATA[<p>Int cannot store that value I needed. I do not think it is a floating point error as in debug I see the correct value set up in the <b>numberVariable</b>. The problem appears only when I do <b>toString()</b>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Peters</title>
		<link>http://www.flexer.info/2008/11/20/numbertostring-bug/comment-page-1/#comment-934</link>
		<dc:creator>Keith Peters</dc:creator>
		<pubDate>Thu, 20 Nov 2008 12:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=326#comment-934</guid>
		<description>It&#039;s not a bug per se, and the problem is not in the toString method. The problem is that the Number class uses 53 bits to store its values. ints and uints use 32 bits. The number you passed in would take more bits than that to represent. Just try this:

trace(-9223372036854775808);

You get the same result. 

53 bits lets you accurately store numbers as large as 9007199254740992. You can store numbers larger than that, but at the expense of accuracy.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not a bug per se, and the problem is not in the toString method. The problem is that the Number class uses 53 bits to store its values. ints and uints use 32 bits. The number you passed in would take more bits than that to represent. Just try this:</p>
<p>trace(-9223372036854775808);</p>
<p>You get the same result. </p>
<p>53 bits lets you accurately store numbers as large as 9007199254740992. You can store numbers larger than that, but at the expense of accuracy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: z</title>
		<link>http://www.flexer.info/2008/11/20/numbertostring-bug/comment-page-1/#comment-932</link>
		<dc:creator>z</dc:creator>
		<pubDate>Thu, 20 Nov 2008 11:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=326#comment-932</guid>
		<description>use int?

mabye some floating point error?</description>
		<content:encoded><![CDATA[<p>use int?</p>
<p>mabye some floating point error?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
