Fixed glitch with the calculator and double values