Okay guys, I'm going to comment on the function call issue:
code:
$result=BaseConverter('44680832201','10','36')

is the function call to the UDF. Therefore I expect the function itself to be in this form in order to get the lowest score:
code:
FUNCTION BaseConverter($b,$c,$d)
;the code itself
ENDFUNCTION

To be fair, we should keep the function name itself as BaseConverter. With regards to the DIM issues, since KiXtart does not require to DIM a variable (according to the manual), you don't need to do it either, unless it would cause problems inside your code.

And, BTW, the call to the function does not count, just the function itself (FUNCTION to ENDFUNCTION). Oh, and if you're using another UDF that is called by your main UDF, that one of course counts too. Just in case somebody wrote a custom MOD() or POWER() UDF.

Finally, the BaseConverter doesn't need to work for fractional numbers, just integers. BrianTX, you asked for clarification [Wink]
_________________________
There are two types of vessels, submarines and targets.