Re: numbers and prefix zero
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