numbers and prefix zero
numbers and prefix zero
- Subject: numbers and prefix zero
- From: Christian Vinaa <email@hidden>
- Date: Sat, 12 Feb 2005 16:57:49 +0100
just curious on a saturday afternoon where there's a snow blizzard outside
(well according to our standards its a blizzard)
set a to "09" as number
set b to a + 1
if b is less than "10" then
set b to "0" & b
end if
get b as text
is this the quickest way to get a result that is in 2-digits
(not counting 3 or more digit versions)
i mean:
set a to "09" as number
set b to a + 1
will get you b as one digit
--
Christian Vinaa
email@hidden
...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
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