Is anybody using plain old integers? Just remove the dots in the numbers and you don't have to worry about conversions
code:
$a='1.234'
$a=val(join(split($a,'.')))

As you only need to return the index numbers it's not really important whether you wourk with doubels or integers.

[ 15. March 2003, 20:18: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.