Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Interchange: No float division from UserTags and [perl]



******    message to minivend-users from Stefan Hornburg <racke@linuxia.de>     ******

Mike Heins <mikeh@minivend.com> writes:

> ******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******
> 
> Quoting Stefan Hornburg (racke@linuxia.de):
> > 
> > 
> > I have a very strange problem with calculations
> > 
> > [calc] 0.5 / 2 [/calc] 
> > 
> > works fine, while
> > 
> > $Tag->calc('0.5 / 2')
> > 
> > evaluates to 0.
> > 
> > Any hints ?
> 
> Cannot do Safe within Safe. Why would you do that anyway? 8-)

Oh, bad example. It doesn't even work in a UserTag:

UserTag bla Routine <<EOF
sub {
        0.5 / 2;
}
EOF

(The actual code is more complicated, but it boils down to that.)

Ciao
        Racke

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Coding from hell and back <--- 
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: