<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx</link><description>Yesterday I found an old email in my mail box that I thought might be generally interesting. I was asking the technical lead on the C# compiler which algorithm/shortcut people should use to choose their 'number types' among the many available in the language.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1771254</link><pubDate>Wed, 28 Feb 2007 02:29:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1771254</guid><dc:creator>Cory Nelson</dc:creator><description>&lt;p&gt;i really mean this in the nicest way: if you get confused by unsigned types, stop coding. &amp;nbsp;maybe the technical lead needs to have more faith in the competency of the developers he is targeting.&lt;/p&gt;
</description></item><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1771386</link><pubDate>Wed, 28 Feb 2007 03:12:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1771386</guid><dc:creator>Sean</dc:creator><description>&lt;p&gt;Yeah, but in the .NET framework unsigned types are not CLR compliant, which you might or might not be worried about. &lt;/p&gt;
</description></item><item><title>Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1771429</link><pubDate>Wed, 28 Feb 2007 03:24:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1771429</guid><dc:creator>Fabrice's weblog</dc:creator><description>&lt;p&gt;Luca Bolognese, from the Microsoft C# team, has an interesting post that aims at providing answers to&lt;/p&gt;
</description></item><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1771774</link><pubDate>Wed, 28 Feb 2007 04:35:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1771774</guid><dc:creator>NBC</dc:creator><description>&lt;p&gt;but if you use what the value means, isn't it more &amp;nbsp;readable ?&lt;/p&gt;
&lt;p&gt;I mean if you have a file header&lt;/p&gt;
&lt;p&gt;with a uint32 fourcc then a uint16 version value, its more readable since you know what you should look for. if you use int fourcc and int version i don&amp;quot;t know how the bytes map in the file.&lt;/p&gt;
</description></item><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1771857</link><pubDate>Wed, 28 Feb 2007 04:59:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1771857</guid><dc:creator>Eber Irigoyen</dc:creator><description>&lt;p&gt;but this applies to the whole CTS, not just C#... right?&lt;/p&gt;
</description></item><item><title>Double, float, decimal, int, long, uint, short ¿cuál uso?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1776962</link><pubDate>Thu, 01 Mar 2007 06:57:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1776962</guid><dc:creator>.NET a 2.860 m de altura</dc:creator><description>&lt;p&gt;C# nos ofrece varios tipos de datos para representar n&amp;amp;uacute;meros y, sobretodo para quienes est&amp;amp;aacute;n&lt;/p&gt;
</description></item><item><title>Numeric datatypes in C#</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1783108</link><pubDate>Fri, 02 Mar 2007 04:54:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1783108</guid><dc:creator>There Must Be Some Mistake</dc:creator><description>&lt;p&gt;Saw this post today describing basic guidance for when to use the different numeric data types available&lt;/p&gt;
</description></item><item><title>Community Convergence XXII</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1785844</link><pubDate>Fri, 02 Mar 2007 11:23:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1785844</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>&lt;p&gt;Welcome to the twenty-second Community Convergence, the March CTP issue. I'm Charlie Calvert, the C#&lt;/p&gt;
</description></item><item><title>Community Convergence XXII</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1785902</link><pubDate>Fri, 02 Mar 2007 11:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1785902</guid><dc:creator>RSS It All</dc:creator><description>&lt;p&gt;Welcome to the twenty-second Community Convergence, the March CTP issue. I&amp;amp;#39;m Charlie Calvert, the&lt;/p&gt;
</description></item><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1791141</link><pubDate>Sat, 03 Mar 2007 02:36:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1791141</guid><dc:creator>Ronaldo Ferreira</dc:creator><description>&lt;p&gt;I coded these days a method that reads a binary file, but all data were represented with only two bytes (an ushort is enough). I really do not see the reason to &amp;quot;forget&amp;quot; these types. If I have coded this same method with int, I have had throw away a lot of bytes.&lt;/p&gt;
</description></item><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1797181</link><pubDate>Sat, 03 Mar 2007 18:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1797181</guid><dc:creator>NBC</dc:creator><description>&lt;p&gt;&amp;gt;I have had throw away a lot of bytes.&lt;/p&gt;
&lt;p&gt;internaly it maybe have been casted as int anyway by the compilator&lt;/p&gt;
</description></item><item><title>re: Which type should I use in C# to represent numbers?</title><link>http://blogs.msdn.com/lucabol/archive/2007/02/27/which-type-should-i-use-in-c-to-represent-numbers.aspx#1858744</link><pubDate>Sun, 11 Mar 2007 14:34:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1858744</guid><dc:creator>AS</dc:creator><description>&lt;p&gt;I want to write a Matrix (Math) with generics that can instance it with all numbers(float, double, int,...).&lt;/p&gt;
&lt;p&gt;any idea?&lt;/p&gt;
&lt;p&gt;I think it is imposible.&lt;/p&gt;
&lt;p&gt;[imposible says i am posible :) ]&lt;/p&gt;
</description></item></channel></rss>