in reply to sprintf not acting like I expect

I'd encourage you to read the documentation for sprintf, and then explain in a follow-up in this thread how you think the line of code you wrote should work. I think as you go through the process of explaining what is supposed to happen, you'll probably discover in what way your use of sprintf doesn't match how it actually works.


Dave

Replies are listed 'Best First'.
Re^2: sprintf not acting like I expect
by NateTut (Deacon) on Dec 03, 2014 at 19:47 UTC
    Never mind. It had nothing to do with sprintf except that I was initializing a string without using it to format the number. Sorry to have bothered you all.