Re: Formatting integer value
Re: Formatting integer value
- Subject: Re: Formatting integer value
- From: Sherm Pendley <email@hidden>
- Date: Mon, 14 Feb 2005 09:05:41 -0500
On Feb 14, 2005, at 8:44 AM, Andy Armstrong wrote:
What am I missing here? Why would you do all that string manipulation
to perform simple integer arithmetic?
I was misled by the description of the output, where the OP wanted 325
to be displayed as 3:25. And he mentioned working with XML, a
text-based format. Overall, I figured it could be easily done with
substrings, not arithmetic.
Turns out I was wrong - 325 means 325 seconds, which would be displayed
as 5:25. And even though the file is XML, it's a plist and the value
he's working with is an integer value.
Sorry 'bout the noise. :-(
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden