Add numeric format function

This fix is a part of "reduce sprintf".
Printf family is too heavy for small embedded systems.