Re: Simple Math Calculation Problem....

From: Date: Fri, 01 Aug 2003 14:31:14 +0000
Subject: Re: Simple Math Calculation Problem....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-157944@lists.php.net to get a copy of this message
The int() function is for C/C++ programming only. This Int() function is not supported in PHP. In PHP it would be Intval(). For float, Floatval(). For double, DoubleVal(). Etc. But beware of the Octual numbers. "Skate" <root@fatcuban.com> wrote in message news:021a01c35838$1ee4a660$1400000a@fatcuban... > > > $Days = (($clockDate - $inputDate) / (24 * 3600)); > > $Days = int(($clockDate - $inputDate) / (24 * 3600)); > > you tried that? > >

« previous php.general (#157944) next »