Oops, also mean't to be to the list!
--- Begin Message ---
On Mon, Sep 01, 2003 at 12:09:12PM +0100, Mace, Richard wrote:
> Hi,
> I have the following code snippet ....
> 
> [% callcent = ( compnos / var.value ) * 100 %]
> 
> to calculate a percentage figure and it works fine, though in some cases it will
> obviously tend to give me a lot of decimal places in the answer (13?) !
> 
> How can I resolve this, to, for example 2 dp?

The way we've done it is 

[% callcent = ( compnos / var.value) * 100 FILTER format('%2.02f') %]

Hope that helps.

Leo

--- End Message ---

Reply via email to