Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numbers and prefix zero



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Re: numbers and prefix zero (From: kai <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.