Tuesday, November 17, 2009

Denominator data type


 
Denominator data type
Variable Types of Numbers
Before we can use certain variables in the program C #, we must give known to the compiler about the type of variable itself. Seen from the examples above, we see that all variables are contained numbers. However, the computer not only process the numbers only, however, other than the variable rate is also capable of storing many types of data. In fact, for this type of numbers, C # supports three types:


  • When we're writing a program, which requires that there numbers should not be divided (integer), as well as the student population at the school, or others, C # offers us what is referred to as "integer." It is impossible that only students living there are his alone, or hand it?
  • When we're writing a program to deal with financial problems (which often used in the industry), we must use the numbers with the number of digits long, may reach the trillions. Language C # offers tell us what is called a "decimal."
  • When we're writing a program used to count things scientific, such as the formula of relativity and quantum physics, maybe we need there is a commanumbers and rank represented in the form of notation Scientific (mantissa and Exponent). In C #, such numbers are called also to floating point number, which is represented by using the keyword "float." 

No comments:

Post a Comment

 
THANK YOU FOR VISITING