Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: Ability to perform calculations in templates

Quote Reply
Re: Ability to perform calculations in templates In reply to
Hi

When I do this:

sub {
my $tags = shift;
return $tags->{storrelse} / 7;
}

it returns a number with very many decimals. Is it possible to get the Int value of the calculation into my tag insted, like INT(storrelse / 7) ?

Subject Author Views Date
Thread Ability to perform calculations in templates phoule 3448 Nov 19, 2000, 6:34 PM
Thread Re: Ability to perform calculations in templates
pugdog 3389 Nov 19, 2000, 6:57 PM
Post Re: Ability to perform calculations in templates
phoule 3368 Nov 19, 2000, 8:30 PM
Thread Re: Ability to perform calculations in templates
Stealth 3386 Nov 19, 2000, 9:36 PM
Post Re: Ability to perform calculations in templates
phoule 3356 Nov 20, 2000, 7:00 AM
Thread Re: Ability to perform calculations in templates
Alex 3354 Nov 20, 2000, 2:09 PM
Thread Re: Ability to perform calculations in templates
areh 3341 Dec 26, 2000, 1:53 PM
Post Re: Ability to perform calculations in templates
pugdog 3312 Dec 26, 2000, 9:26 PM