Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Numeric Data

image

C# and the .NET Framework support eleven different types for manipulating numeric data, but in practice one type for each kind of number is really efficient, and you’ll almost always use it unless you have a very good reason not to: Int32 for integers, Double for floating point numbers, and Decimal for currency values.


On Your Own

image

All of the numeric values are defined as structures in the System namespace. Using the Object Browser and MSDN, complete the following table of numeric types. There are useful (but incomplete) tables in the MSDN library—search for “Types Reference Tables”.

image


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial