On Mon, Dec 13, 2004 at 07:04:23PM -0600, Dave Rolsky <[EMAIL PROTECTED]> wrote: > On Mon, 13 Dec 2004, Dave Rolsky wrote: > > >>>How can that be sane? So you ask for minutes and you get fractional > >>>minutes but you ask for seconds and get zero? > > > >Cause really it should just blow up when you give it fractional anything. > > Or not. Anyone know of a good way to check that a parameter is one of: > > - an integer
int($param) != $param # works even for values greater than max UV > - infinity > - NaN $param - $param != 0; # indicates +/-Inf or NaN (differentiate between the two: $param != $param ? "nan" : "infinite") > keeping in mind that if I regex a very large number it gets converted to a > string which may be "1.5853e+18"!