i am trying to round a number to 2dp and i am struggling
i am trying to use the decimal-string method
This is what I had
<xf:bind nodeset="/stuff/price"
calculate = "if(boolean-from-string(/stuff/amountOff),
((/stuff/items) * (/stuff/duration) * 0.8),/stuff/items* /stuff/duration)" />
This is what I tried
<xf:bind
nodeset="/stuff/price"
calculate = "decimal-string(if(boolean-from-string(/stuff/amountOff),
((/stuff/items) * (/stuff/duration) * 0.8),/stuff/items* /stuff/duration)" , 2)/>