What format do I use in gfx_print() to display these values?
-12, -07, 0, +08 and +11.
They are all integer values in the range -99 to +99. All non-zero values are signed and all are aligned centrally.
The kludge I have at the moment is:
Code:
XXB < 0 ? (gfx_x -=4; gfx_printf("%03d", XXB); );
XXB == 0 ? (gfx_x +=4; gfx_printf("0"); );
XXB > 0 ? (gfx_x -=4; gfx_printf("+%02d", XXB); );
I tried signed integer ('i') but that did not work.