006 integer / floating point / CPU frequency

 

/ * 
Directory: 
   a integer of 
   two floating-point 
   three cpu frequency 
* /

 

An integer

Type unsigned int (4 bytes), representable range: 0 ~ 2 ^ 32 - . 1             ; ~ 0 to about 4.2 billion 
signed int type (4 bytes), a range that can be expressed: - ( 2 ^ 31 ) - 2 ^ 31 is - . 1      ; -21 billion to about 2.1 billion

 

Two floating point numbers

a float : 32. 4 bytes 
    of bits used: 1bit (sign bit) 8bits (exponent) 23bits (mantissa bits) 
    value range: - 3.4E + 38 is ~ 3.4E + 38 is 
    
Double : 64. 8 bytes 
    bits used: 1bit (sign bit) 11 bits (exponent) 52bits (mantissa bits) 
    value range: - 1.7 * 10 (- 308 ) ~ 1.7 * 10 ( 308 )

 


Three cpu frequency

10  0000  0000      GHz (Hz) one billion
 100  0000         MHz (megahertz) one million

 

Guess you like

Origin www.cnblogs.com/huafan/p/11487931.html