Advertisement

11.19.2007 at 06:19AM PST, ID: 22970101
[x]
Attachment Details

Formatting Large Numbers with PRINTF

Asked by cs76737 in Perl Programming Language

Tags: numbers, large, printf

What is the syntax for PRINTF that I need to use for getting commas in large numbers?  

printf(%.2f, 1000000000)

How do I get it to display   "1,000,000,000"  ?

thanks.Start Free Trial
 
Keywords: Formatting Large Numbers with PRINTF
 
Loading Advertisement...
 
[+][-]11.19.2007 at 07:01AM PST, ID: 20312788

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.19.2007 at 07:14AM PST, ID: 20312881

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.19.2007 at 07:22AM PST, ID: 20312933

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.19.2007 at 09:21AM PST, ID: 20313770

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: numbers, large, printf
Sign Up Now!
Solution Provided By: FishMonger
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628