Add comma to the given number - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Add comma to the given number (/Thread-Add-comma-to-the-given-number) |
Add comma to the given number - satishkumarm - 05-26-2011 how to add comma to the given number for example if number is 2000 then it should display 2,000 and if number is 20500 then it should display 20,500 I request some1 to give me the function for displaying the format mentioned as above... RE: Add comma to the given number - Palanimurugana - 05-26-2011 Could you try with below codes. Code: str=FormatCurrency(2000) RE: Add comma to the given number - satishkumarm - 05-26-2011 Thank you very much RE: Add comma to the given number - Anand - 05-27-2011 Go to the following Link http://www.devguru.com/technologies/vbscript/quickref/formatnumber.html |