-
Feature Articles
- Most Recent Articles
- The Easy No
- Flushed Out
- The Hot Fix
- The Roadmap
- Let's Be Facebook!
- Whales Ahoy!
- Three Digit Acronyms
- The Pride Goeth
-
CodeSOD
- Most Recent Articles
- Wait Longer
- The Error Check
- AAYFN
- Module Test
- On Hold
- The Most Dangerous Game
- Off the Path
- Authorized Logger
-
Error'd
- Most Recent Articles
- Princess Pricing
- Einfach so
- Kaids Hen 2025
- Fi fa foe
- Microbits
- No Rush
- Bridge for Sale
- Super SEO Strategies
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Add Comment
Admin
As you say, a line like sprintf(NinecharString, "%d%d%d%d%d%d%d%ld",0,0,0,0,0,0,0, Number); will put the 0's first followed by the sign, followed by the magnitude. Still 0000000-1 is the same as -000000001 or -1 (I prefer the last)
Where as sprintf(NinecharString, "%09ld", Number); doesn't do this. ;)
Admin
Fred is a fool.
BTW: camelCase PascalCase