micropython/micropython — pull request #447 by dhylands (2014-04-07 18:28:00+00:00)
Title: Add string formatting support for longlong and mpz.

Tested under unix with NONE, LONGLONG and MPZ implementations.
Added comma format support
'{:6,d}'.format(1234) now produces ' 1,234'

TODO: a function which converts float/double to mpz integer.

Right now '%d' % 1e20 produces '0' under micropython and '100000000000000000000' under python.