Basic implementation of format.

Decimal and thousands separators not implemented yet.
http://www.software-lab.de/doc/refF.html#format