Re: [PHP] Doing simple math

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 20:02, Chris Cameron wrote: > On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > > > An example that looks like it -should- work: > > > > > > $Math = sqrt(81)(5+4)-1; > > > > > > What is the relation between

Re: [PHP] Doing simple math

2003-06-04 Thread Chris Cameron
On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > An example that looks like it -should- work: > > > > $Math = sqrt(81)(5+4)-1; > > > What is the relation between the sqrt(81) and the (5+4)-1? i.e. there > is no operator there...w

Re: [PHP] Doing simple math

2003-06-04 Thread Lars Torben Wilson
On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > I'm having a problem I don't think I should be having. Basically, I'm > doing some simple math, and I'm having issues in making PHP do it (with > the brackets in particular). > > An example that looks like it -should- work: > > $Math = sqrt(81)(

RE: [PHP] Doing simple math

2003-06-04 Thread John W. Holmes
> I'm having a problem I don't think I should be having. Basically, I'm > doing some simple math, and I'm having issues in making PHP do it (with > the brackets in particular). > > An example that looks like it -should- work: > > $Math = sqrt(81)(5+4)-1; Do you mean: $Math = sqrt(81)*(5+4)-1;