MiniVend Akopia Services

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

Re: me, bugs and 3.14



Thomas 'Balu' Walter wrote:
> 
> ******    message to minivend-users from "Thomas 'Balu' Walter" <tw@iTreff.DE>     ******
> 
> * Christian J. M&#252;ller (cmueller@polinet.ch) [10.06.99 14:39]:
> > Thomas 'Balu' Walter wrote:
> > >
> > > Note: The calculation I was going to use was:
> > > [currency]
> > > [calc]'[subtotal noformat=1]'-('[subtotal noformat=1]'/1.16)[/calc]
> > > [/currency]
> >
> > Try to remove the quotes. Perl is expecting a string, not a number if
> > you use quotes.
> 
> This does not help... I think there is a problem with floating point
> numbers... Check this out:
> 
> [currency]
>   [calc]1+1.5[/calc]
> [/currency]
> 
> This gives 2,00 DM in my setup, while
> 
> [currency]
>   [calc]1+1,5[/calc]
> [/currency]
> 
> has a result of 5,00 DM.

Try:
[currency]
[calc]$n = 1+1.5[/calc]
[/currency]

This should work! [calc] works like [perl]. 
Chris

> 
>      Balu
> -
> 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: