This works too: print (int)(($eall - $sall) / 1000);
From: Andrew Wilson [mailto:will@;netwaynetworks.com.au]
Sent: Tuesday, October 29, 2002 11:18 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Decimal places.
I have two variables ( integers ) that are being minused one from the
and i am printing the result to the screen but i am getting unwanted
print ($eall - $sall) / 1000;
My question is what is the easiest way to strip decimals off the above
result. The only way i know around it is if i piped the above statement
another varible and set that variable to an integer then printed that.
I dont really want to do this as i will end up with 50 extra variables.
Thanks in advance for your comments.
Netway Networks Pty Ltd
(T) 8920 8877
(F) 8920 8866
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php