Batt meter

Ok this gets me.
1v in = 1.07v out
2v in = 2.12v out
3v in = 3.22 out
4v in = 4.30 out
4.60-5v in = 5v out

int getBandgap(void) // Returns actual value of Vcc (x 100) 415 = 4.15v
{
   int raw = analogRead(15);
   int results = map(raw,0,1096,0,500);  // scale voltage to 0-500
   float myfloat;
   float sensorCalbrate = 1.07299; 
   int battv=results;
   int temp=battv;
   int x;
   int y;
   float z;
   float batteryV;
   x = battv;
   y = 100.00;   
   // y now contains 0, ints can't hold fractions
   z = (float)x / y;   // z now contains .5 (you have to use 2.0, not 2)
   batteryV=z*sensorCalbrate;  
    temp = (batteryV*100);
    battv== (int) temp ; // now i is 3
   battv=temp;
   results=temp; 
  return results;
 
}