Syntax:
FORMAT(X,D)

Formats the number X to a format like '#,###,###.##', rounded to D
decimal places, and returns the result as a string. If D is 0, the
result has no decimal point or fractional part.

URL: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html

