Re: Formatting integer value
Re: Formatting integer value
- Subject: Re: Formatting integer value
- From: Andy Armstrong <email@hidden>
- Date: Mon, 14 Feb 2005 14:14:16 +0000
On 14 Feb 2005, at 14:05, Sherm Pendley wrote:
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. :-(
Oh, sorry about any hostile tone that might have been inferred from
what I posted :)
Given the original poster's question I don't imagine it's the worst
thing that'll appear in whatever he writes by a considerable margin :)
--
Andy Armstrong, hexten.net
_______________________________________________
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