• 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: 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


  • 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>)

  • Prev by Date: Re: UDP SOCKETS!!
  • 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