Fix numbers in history not being formatted to the user's locale
For example, if your computer is in a locale where the decimal separator is the comma, the history window would show results with a dot as the decimal separator. This means it would not possible to copy and paste a number from history to the calculator. Also move formatDecimalNumber to kcalc_core.cpp, since it barely depends on anything in KCalcDisplay.
Edited by Bernardo Gomes Negri