Re: declaring an unsigned int
| From: | Daniel Convissor | Date: | Fri, 22 Dec 2000 19:04:23 +0000 |
| Subject: | Re: declaring an unsigned int | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31619@lists.php.net to get a copy of this message | ||
Curtis:
> aha... i was hoping there would be a way to make sure a variable always stays
> positive, rather than constantly checking it.
Just making sure, you know about the abs() function. No complex checking is
needed. Just use abs() on the variable at the beginning of the script or as
you're using it.
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409