C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

Primitive data types


Posted Date: 05 Apr 2004    Resource Type: Articles    Category: .NET Framework
Author: KasiviswanathMember Level: Gold    
Rating: 1 out of 5Points: 5



In C# has a number of built in types called primitive data type.
Most commonly used primitive data types are.

1. Int
* The Int data type hold whole numbers
* The Size (bits) = 32
* Range–231 through 231 -1

2. Long
* The Long data type hold whole number; the number beiger than Int but it requires more memory.
* The size (bits) = 64
* Range–263 through 263 -1

3. Float
* The Float data type hold Flouting point number (ie) the number containing decimal point.
* The Size (bits) = 32
* Range ± 3.4 * 1038

4. Double
* The Double data type hold the values to twice the precision of float.
* The Size (bits) = 64
* Range ± 1.7 * 10308

5. Decimal
* The Decimal data type hold values to 28 significant figures.
* The Size (bits) = 128
* Range 28 significant figures.

6. String
* The String data type hold sequences of characters.
* The Size (bits) 16 bits per character.
* Range N/A

7. Char
* The Char data type hold single character
* The Size (bits) = 16
* Range 0 through 2 16 -1

8. Bool
* The Bool data type hold either true or false.
* The Size (bits) = 8
* Range True or False.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Built-in Attributes : AttributeUsage, Conditional, and Obsolete
Previous Resource: Pointers in C# and writing Unsafe code
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use