RE: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Cal Evans
Hm...you may be on to something. If you run this code you will see that about 30% of the time $ns1 IS actually 1. the funny thing is that if you remove the doubleval calls, $ns1 purports to have a value than 1. Interesting... ?PHP srand ((double) microtime() * 100); Income

Re: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Roy Cabaniss
On Thursday 28 February 2002 08:35, Cal Evans wrote: Hm...you may be on to something. If you run this code you will see that about 30% of the time $ns1 IS actually 1. the funny thing is that if you remove the doubleval calls, $ns1 purports to have a value than 1. Interesting... ?PHP