When it comes to number formatting, the snippet in this node can be useful
-- TMTOWTDI
In reply to Re: number formatting by trantor in thread number formatting by costas