XPath and XQuery are quite a bit different.
XPath 2.0 adds a lot of capabilities found in XQuery, but it's not yet supported by Mono.
However, you can do your operations in Deki Script as well. Deki Script automatically converts from text to numbers and vice versa when needed.
For example:
Code:
{{ web.text(source, xpath1) + web.text(source, xpath2) }}
You can even do conditionals, like so:
Code:
{{ web.text(source, xpath1) > 100 ? web.text(source, xpath2) : web.text(source, xpath3)}}
web.text caches the document for a short duration to make repeated access to it much faster. So, feel free to run as many xpaths over it as you like in a single page.
num.format() is being added in 1.9.0b (it's similar to date.format, but for numbers).
What would be really awesome, is you could do a write-up on how you're using it to build dashboards for your wiki. I'm sure others would love to read about it!