Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 28th, 2005, 05:25 PM
Registered User
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sprintf and thousands separators

I have looked all over the place and have yet to find an answer to this question: I am using sprintf and am trying to print out numbers formatted with comma separators. I have tried:
 - setlocale
 - putting a tick (%'.02f) into the format string

Am I missing something? Also, I can't use the number_format function.

Thanks in advance.

Old April 5th, 2005, 04:00 PM
Registered User
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Wow, no response at all. Is this not possible with sprintf?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relod dataGridview thousands of time in minute Theone84 C# 2005 2 April 21st, 2008 04:23 AM
Date Separators dhoward VB.NET 2002/2003 Basics 0 October 30th, 2006 10:33 AM
Thousands and Decimals - Notation fskilnik Dreamweaver (all versions) 3 October 4th, 2005 02:35 PM
gridbaglayout line separators cEz Java GUI 0 September 26th, 2005 08:33 PM
separators in listboxes using "value list" vbnewby Beginning VB 6 0 February 7th, 2005 09:30 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.