• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Formatting integer value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Formatting integer value
      • From: Andy Armstrong <email@hidden>
References: 
 >Formatting integer value (From: RenĂ© Korthaus <email@hidden>)
 >Re: Formatting integer value (From: Sherm Pendley <email@hidden>)
 >Re: Formatting integer value (From: Andy Armstrong <email@hidden>)
 >Re: Formatting integer value (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Formatting integer value
  • Next by Date: Re: Formatting integer value
  • Previous by thread: Re: Formatting integer value
  • Next by thread: Re: Formatting integer value
  • Index(es):
    • Date
    • Thread