I can't believe I forgot how to do this but I would I turn a float into an integer?
something simple like this
$blah = ($dex / 2);
Isn't it something like this?
$blah = int($dex / 2);
gah...
$blah=(int)($dex/2); HTH Rob