[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
floating-point-BUG? (was: Re: me, bugs and 3.14)
* Thomas 'Balu' Walter (tw@iTreff.DE) [15.06.99 10:17]:
> 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.
>
Hmm...
I just noticed the following fact in my Euro-Locale-Problem:
Locale eur_EUR PriceDivide 1.95583
This is also a floating-point Number... changing to 2.9... restarting...
checking... (is 779/2=389.5 true? yes).
Hm - it actually seems that this is a problem with the .,-numbers.
Is this because of a wrong perl-setup or a bug in minivend?
bash-2.02# perl -v
This is perl, version 5.005_02 built for i586-linux
It is a SuSE-Linux 6.1-System...
Balu