Google says here :
Extra for ACTION_BATTERY_CHANGED: integer containing the current battery temperature.
The returned value is an int representing, for example, 27.5 Degrees Celcius as "275" , so it is accurate to a tenth of a centigrade. Simply cast this to a float and divide by 10.
Using your example:
int temp = intent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE,0);
float tempTwo = ((float) temp) / 10;
OR
float temp = ((float) intent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE,0) / 10;
You don't need to worry about the 10 as an int since only one operand needs to be a float for the result to be one too.
float temp = intent.getIntExtra(BatteryManager.EXTRA_TEMPERATURE,0)/10;
? – Dansby