format numbers on display, closes #16