RE: [PHP-DB] Decimal places.

2002-10-30 Thread Josh Johnson
This works too: print (int)(($eall - $sall) / 1000); -- Josh -Original Message- From: Andrew Wilson [mailto:will@;netwaynetworks.com.au] Sent: Tuesday, October 29, 2002 11:18 PM To: '[EMAIL PROTECTED]' Subject: [PHP-DB] Decimal places. Hay guys, I have two variables ( integers ) that a

Re: [PHP-DB] Decimal places.

2002-10-29 Thread Peter Beckman
printf("%d",($eall - $sall) / 1000); On Wed, 30 Oct 2002, Andrew Wilson wrote: > Hay guys, > I have two variables ( integers ) that are being minused one from the other > and i am printing the result to the screen but i am getting unwanted > decimals. > > print ($eall - $sall) / 1000; > > My ques