Fixed incorrect calculation of the digits limit for the e format type with an explicit precision.
Updated the __format__ docstring for the upcoming change: '{:.0f}' will give 0.+/-… but not 0+/-…
More precise __format__ docstring.
Updated docstring for the new format_num().
Updated call to format_num().
Work in progress: handle the new parameters of format_num(). This amounts to always adding a decimal point for non-zero, zero-rounded values (including the nominal value), and having no decimal point for exactly zero values (including the nominal value).
Removed period in ValueError message, like for '{:d}'.format(3.14).
Fixed test.
Additional tests.
Updated docstrings with the new handling of non-zero, zero-rounded uncertainties: they are not necessarily printed with a decimal point. Implementing this in the general case would be cumbersome (see added comments).
Removed obsolete comment.
More verbose comment.
Fixed regression.
Fixed 0 uncertainty ± notation code.
Adapted test to new (documented) behavior.
More informative error message.
Even more informative error message.
Fixed test.
More precise error message (Unicode strings are explicitly indicated).
Fixed test.