support % and ^ on Calc.cs