One of the users of my watch face has an odd problem in that it is displaying floating point values:
There are no Floats in the code and I have no idea how the temperature values are showing like this (e.g. the 17.777779 and 20.555555).
The code uses only Numbers:
var temperatureString = statuteConversion(temperature).toString() + "°";
drawData(dc, temperatureString, _font, colourTemperature, _iconTemperature, x, y, pos);
Where:
function statuteConversion(temp as Number) as Number {
if(_temperatureUnits == System.UNIT_STATUTE) {
temp = (temp * 9/5) + 32;
}
return temp;
}
Paul