From: Neill Mitchell <neill@nl...>  20091125 12:34:12

Hi. I've got the following set up: {{#varset:vat_total{{#multiply{{{Cost}}}0.15}}}} VAT={{#varget:vat_total}} This idea is to auto calculate UK VAT for a field. So, the above seems to work. If Cost=200 then the #varget correctly returns 30, for example. However, in my template:  ! VAT  [[VAT::{{#varget:vat_total}}]] returns 0.15}}, which is wrong. Why is the varget in the template returning something different to when I just print the varget? I've used vargets before in templates without problem. Any ideas? Or is there a better way to do this? Doing basic math like this on fields is very useful. Thanks ! 