I needed to calculate an absolute value in a formula in InfoPath. I used a conditional expression. So for example say you have a field called MyNumber and you want to calculate its absolute value, you edit the formula (either as an expression box or as the default value of a text box). Check the Edit XPath checkbox and enter ...