Use Sensor.getResolution() to calculate the number of decimal digits to be displayed.
Merge pull request #16 from ilarrain/master

Base the number of decimal digits on actual sensor resolution.