I´m trying to use total ascent but i can not format the number
i use this on class
var totalAscent;
this on function
gpsSignal = info.currentLocationAccuracy;
and this on update and returns me
textC(dc, 170, 9, Gfx.FONT_TINY, totalAscent.format("%.0f"));
and returns me this only when i include the .format string
i haver tried to convert to number or to float with same results
Error: Unexpected Type Error
Details: Failed invoking <symbol>
Stack:
- onUpdate() at /Users/lcda/Downloads/SDK/PowerEdgeField/PowerEdgeField-master/source/PowerEdgeFieldView.mc:283 0x1000135e