Difference between two numbers
This is an open discussion with 5 replies, filed under XSLT.
Search
Eh, what? :-D
abs(entry/transaction-total - entry/transaction-splits/item/amount) abs(entry/transaction-total) - abs(entry/transaction-splits/item/amount)
Wich one of those are you trying to do?
Isn't abs()
xslt 2 only though?
I'm trying to find where I read that and got that xpath from...
Yeah, I'm just trying to understand your lengthy expression.
Create an account or sign in to comment.
I'm trying to figure out the difference in digits between two numbers with
XSLT
.I had an xPath that did it for the Reflection Field
As you can see, that's very difficult to read, so I want to use the new
XSLT
Reflection Field to do it, but I can't for the life of me figure out the best way.The above xPath creates absolute numbers, as some of the numbers might be negative.
Does anyone have any insight to this? Maths is not my strong point.