Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Tag calculation or global?

Quote Reply
Tag calculation or global?
Hi,

I've got a field that I'm trying to calculate tax on and then display. This is the template tag I'm using...

<% Price * 1.125 %>

but what I want to do is get it to round the result to two decimal places using these rules:

1. If the 3rd number after decimal point is 4 or below, it rounds the result down.
2. If the 3rd number after decimal point is 5 or above, it rounds the result up.

Can anyone help me out with how? It's sounding like a global job as I'm not sure if it's something that can be done in the templates.

Thanks

Regan.
Subject Author Views Date
Thread Tag calculation or global? ryel01 5350 Jun 12, 2002, 8:25 PM
Thread Re: [ryel01] Tag calculation or global?
Paul 5288 Jun 13, 2002, 2:06 AM
Thread Re: [Paul] Tag calculation or global?
ryel01 5294 Jun 13, 2002, 2:15 AM
Thread Re: [ryel01] Tag calculation or global?
Paul 5277 Jun 13, 2002, 2:19 AM
Thread Re: [Paul] Tag calculation or global?
ryel01 5272 Jun 13, 2002, 2:45 AM
Thread Re: [ryel01] Tag calculation or global?
Paul 5277 Jun 13, 2002, 2:56 AM
Thread Re: [Paul] Tag calculation or global?
ryel01 5256 Jun 13, 2002, 4:39 AM
Thread Re: [ryel01] Tag calculation or global?
Paul 5215 Jun 13, 2002, 7:06 AM
Thread Re: [Paul] Tag calculation or global?
ryel01 5219 Jun 15, 2002, 12:54 AM
Post Re: [ryel01] Tag calculation or global?
el noe 5013 Jan 29, 2007, 6:32 AM
Thread Re: [Paul] Tag calculation or global?
yogi 5271 Jun 13, 2002, 5:00 AM
Thread Re: [yogi] Tag calculation or global?
Paul 5276 Jun 13, 2002, 6:58 AM
Post Re: [Paul] Tag calculation or global?
yogi 5230 Jun 13, 2002, 7:00 AM
Post Re: [Paul] Tag calculation or global?
ryel01 5292 Jun 13, 2002, 7:29 AM