[PHP] sprintf()'s in if()'s

2001-05-04 Thread Chris Cameron
I suppose when you have so few problems you get to nitpick.. Guess my question is; why doesn't this work? if(sprintf(%01.2f,$Result[CurrentPrice]+$Result[Increment]) = sprintf(%01.2f,$BidAmt)) { when this works; if(0.30 = 1.00) { I'll just settle with a workaround for now. Thanks, Chris

Re: [PHP] sprintf()'s in if()'s

2001-05-04 Thread Jason Brooke
I suppose when you have so few problems you get to nitpick.. Guess my question is; why doesn't this work? if(sprintf(%01.2f,$Result[CurrentPrice]+$Result[Increment]) = sprintf(%01.2f,$BidAmt)) { when this works; if(0.30 = 1.00) { I'll just settle with a workaround for now. Thanks,