Eng 6265 add format currency func

Add a SQL function, FORMAT_CURRENCY. Its function is return a string in xx,xxx,xxx.xx format given a number. 
I added a little more test cases for long and decimal and it went wrong. The reason for long type was double cannot provide too much precision if the number was too big. I haven't find the reason for decimal type's error.