In the template language docs for Adobe Document Generation, mathematical expressions can be done using tags like below...
{{expr(revenue - expenditure)}}
This works and outputs a number, but is there any way to apply formatting to the number, for example, $50,000.00 where the calculated value is just 50000?