PIVOT-972: Fix a bug with percent calculations in the Calculator tutorial application. This is a merge of revision 1688306 from trunk to branches/2.0.x.