Date: 10/29/02
- Next message: Peter Beckman: "Re: [PHP-DB] Decimal places."
- Previous message: Peter Beckman: "Re: [PHP-DB] Re: losing my session variables"
- Next in thread: Peter Beckman: "Re: [PHP-DB] Decimal places."
- Reply: Peter Beckman: "Re: [PHP-DB] Decimal places."
- Reply: David Robley: "[PHP-DB] Re: Decimal places."
- Reply: Josh Johnson: "RE: [PHP-DB] Decimal places."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 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 into
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.
Andrew Wilson
Technical Support
Netway Networks
8920-8877
Netway Networks Pty Ltd
(T) 8920 8877
(F) 8920 8866
- Next message: Peter Beckman: "Re: [PHP-DB] Decimal places."
- Previous message: Peter Beckman: "Re: [PHP-DB] Re: losing my session variables"
- Next in thread: Peter Beckman: "Re: [PHP-DB] Decimal places."
- Reply: Peter Beckman: "Re: [PHP-DB] Decimal places."
- Reply: David Robley: "[PHP-DB] Re: Decimal places."
- Reply: Josh Johnson: "RE: [PHP-DB] Decimal places."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

