Works like a real calculator: Automatically shortens the number if the part after the decimal point is too long. 'E' means the value is too large to be displayed, the decimal point is moved and the value is shortened.
Button layout inspired by the iOS calculator app.