Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-29 Thread Kevin Fishburne
On 04/27/2012 07:24 PM, Jussi Lahtinen wrote: > At least the problem is unrelated to sin and cos... > > ? format(0.47942553860420300027 ^ 2 - > 0.22984884706593014129,"#.##") > - .0012212453 > > ? format(0.47942553860420300027 ^ 2.0 - 0.22984884706593014129 > ,"#.###

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-28 Thread Jussi Lahtinen
Everything seems to work now! Jussi On Sat, Apr 28, 2012 at 18:11, Benoît Minisini wrote: > Le 28/04/2012 04:52, Benoît Minisini a écrit : > > Le 28/04/2012 01:24, Jussi Lahtinen a écrit : > >> At least the problem is unrelated to sin and cos... > >> > >> ? format(0.47942553860420300027 ^ 2 -

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-28 Thread Benoît Minisini
Le 28/04/2012 04:52, Benoît Minisini a écrit : > Le 28/04/2012 01:24, Jussi Lahtinen a écrit : >> At least the problem is unrelated to sin and cos... >> >> ? format(0.47942553860420300027 ^ 2 - >> 0.22984884706593014129,"#.##") >> - .0012212453 >> >> ? format(0.47942

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread Benoît Minisini
Le 28/04/2012 01:24, Jussi Lahtinen a écrit : > At least the problem is unrelated to sin and cos... > > ? format(0.47942553860420300027 ^ 2 - > 0.22984884706593014129,"#.##") > - .0012212453 > > ? format(0.47942553860420300027 ^ 2.0 - 0.22984884706593014129 > ,"#.###

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread Jussi Lahtinen
At least the problem is unrelated to sin and cos... ? format(0.47942553860420300027 ^ 2 - 0.22984884706593014129,"#.##") - .0012212453 ? format(0.47942553860420300027 ^ 2.0 - 0.22984884706593014129 ,"#.##") - .0011379786 Jussi

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread Benoît Minisini
Le 27/04/2012 20:44, Jussi Lahtinen a écrit : > If Sin(0.5) ^ 2 + Cos(0.5) ^ 2<> 1 Then > Print "This shouldn't be seen, but it is." > Endif > > > ? format((Sin(0.5) ^ 2 + Cos(0.5) ^ 2),"#.") > 1 > > What is going on? > > > Jussi > It's very strange actually. There is opt

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread nando
messy over many calculations. -Nando -- Original Message --- From: Jussi Lahtinen To: mailing list for gambas users Sent: Fri, 27 Apr 2012 21:44:08 +0300 Subject: Re: [Gambas-user] gb3: incorrect solution to If...Then condition > If Sin(0.5) ^ 2 + Cos(0.5) ^ 2 <> 1

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-27 Thread Jussi Lahtinen
If Sin(0.5) ^ 2 + Cos(0.5) ^ 2 <> 1 Then Print "This shouldn't be seen, but it is." Endif ? format((Sin(0.5) ^ 2 + Cos(0.5) ^ 2),"#.") 1 What is going on? Jussi 2012/4/27 Benoît Minisini > Le 27/04/2012 05:08, Kevin Fishburne a écrit : > > I'm using the latest b

Re: [Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-26 Thread Benoît Minisini
Le 27/04/2012 05:08, Kevin Fishburne a écrit : > I'm using the latest build and have this code: > > If Zoom.Adjustment * 0.5>= Zoom.Maximum Then > Zoom.Adjustment = Zoom.Adjustment * 0.5 > Endif > > Zoom.Adjustment and Zoom.Maximum are both singles. Zoom.Adjustment is 1 > and Zoom.Max

[Gambas-user] gb3: incorrect solution to If...Then condition

2012-04-26 Thread Kevin Fishburne
I'm using the latest build and have this code: If Zoom.Adjustment * 0.5 >= Zoom.Maximum Then Zoom.Adjustment = Zoom.Adjustment * 0.5 Endif Zoom.Adjustment and Zoom.Maximum are both singles. Zoom.Adjustment is 1 and Zoom.Maximum is 0.5. The expression with these values returns False,