• 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: numbers and prefix zero
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numbers and prefix zero


  • Subject: Re: numbers and prefix zero
  • From: Paul Richardson <email@hidden>
  • Date: Sat, 12 Feb 2005 21:03:08 +0100

On Samstag, 12. Februar 2005, at 19:20 Uhr (GMT -0000), kai wrote:

> set b to text -2 thru -1 of (100 + a + 1 as string)

Ah! Interesting.

More generally:

on pad(theNumber, thePower)
  return text -thePower thru -1 of ((((10 ^ thePower) as integer) + theNumber) as string)
end pad

pad(7, 3)


Paul
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • scripting safari and menu items
      • From: Christian Vinaa <email@hidden>
References: 
 >Re: numbers and prefix zero (From: kai <email@hidden>)

  • Prev by Date: Re: numbers and prefix zero
  • Next by Date: Re: "open location" osax question
  • Previous by thread: Re: numbers and prefix zero
  • Next by thread: scripting safari and menu items
  • Index(es):
    • Date
    • Thread