This basically does what xtemp does, in a shell Script. It requires 'bc' which isn't installed by default, so you might want to do a 'apt-get install bc' before running the script.
#!/bin/bash
export P=/sys/bus/iio/devices/iio:device0/in_temp0;
echo "scale=2; ( $(cat ${P}_raw) + $(cat ${P}_offset) ) * $(cat ${P}_scale) / 1000.0" | bc