Issue 259 fixed. Most of floats printing code had to be rewritten.

FIXME: scientific notation doesn't work anymore.
Support for scientific notation in calc is back.