MiniVend Akopia Services

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

Re: me, bugs and 3.14



* Christian J. Mü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.

     Balu


Search for: Match: Format: Sort by: