What are you using the UDF for? Could you use the FormatNumber() builtin?