title: How to store a number in decimal format in avr
body: <p>I am trying to enter the decimal values using a keypad in ATMega8
  Till now I have been able to enter only the integer values
  The code is given below</p>
  
  <pre><code>switch (keyCode)            
  {
  
      case (0xee): 
              keyPressed="1";
              b=1;
              a=a*10+b; 
              break;
      case (0xed): 
              keyPressed="4";
              b=4;
              a=a*10+b; 
              break;
      case (0xeb): k
              keyPressed="7";
              b=7;
              a=a*10+b; 
              break;
  
      case (0xde): 
              keyPressed="2";
              b=2;
              a=a*10+b; 
              break;
      case (0xdd): 
              keyPressed="5";
              b=5;
              a=a*10+b; 
              break;
      case (0xdb): 
              keyPressed="8";
              b=8;
              a=a*10+b; 
              break;
      case (0xd7): 
              keyPressed="0";
              b=0;
              a=a*10+b; 
              break;
      case (0xbe): 
              keyPressed="3";
              b=3;
              a=a*10+b; 
              break;
      case (0xbd): 
              keyPressed="6";
              b=6;
              a=a*10+b; 
              break;
      case (0xbb): 
              keyPressed="9";
              b=9;
              a=a*10+b;
  }       
  </code></pre>
  
  <p>Using the above code I am able to store an integer in register a</p>
  
  <pre><code>case (0xe7): keyPressed=".";
  </code></pre>
  
  <p>Above case is the keyCode for "." Now I want after pressing "." on keypad it stores all the keys pressed in the integer a</p>