 
          
         
               
            
| Digit Manipulation A Programming Pattern | 
| 
                      
                     Prof. David Bernstein
                      | 
| Computer Science Department | 
| bernstdh@jmu.edu | 
 
               
             
         
             
         
          
         int value is "atomic" (i.e., it does not 
              have any constituent parts)int value : Binary Numbers
: Binary Numbers 
         
             
         
          
         int values are represented internally
              in binary (i.e., base 2)<<
                     >>
                     &
                     |
                      
         
             
         
          
          
         
             
         
          
          
         
             
         
          
         /)%) 
         
             
         
          
         /)%) 
         
             
         
          
         412831758 % 10
                      
         
             
         
          
         412831758 / 1000000
                      
         
             
         
          
         (412831758 % 1000000) / 10
                      
         
             
         
          
          
         