I got problems formatting these 3 fields i'm doing these strings and return no data
textC(dc, 50, 189, Gfx.FONT_NUMBER_MEDIUM, fields.power != null ? lapPower : calories.format("%.1f") );
only if i do it this way but then i can not use format.
textC(dc, 50, 189, Gfx.FONT_NUMBER_MEDIUM, fields.calories );
}
i also made a format string in a background file and on the compute info and its not working
function formatCalories(calories) {
calories = info.calories;
if (info.calories != null) {
return "0";}
else {
return calories.format("%.2f");
what im doing wrong??