Here's a quick UDF to do the max thing for you...

code:
Function udfIntMax($vArray)
Dim $iSubscript
$udfIntMax=Val($vArray[0])
For $iSubscript=1 To UBound($vArray)
If Val($vArray[$iSubscript]) > $udfIntMax $udfIntMax=Val($vArray[$iSubscript]) EndIf
Next
Return
EndFunction

Just call it like this:

code:
$iNumber=99
$iMaxNo=udfIntMax(split("9 6 $iNumber 23")) ?
"Largest number is " $iMaxNo ?

You can do the min() thing by reversing the ">" test.