Legend: Made number of digits after point be adjusted to show the number
of significant digits defined by the user.
Not quite complete the solutions is. There are cornercases not covered
well yet.
* Fixed rounding error.