Re: Coercing Numbers
Re: Coercing Numbers
- Subject: Re: Coercing Numbers
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 26 Feb 2010 15:20:16 -0500
Well, "x as integer as text" works if you know it's a whole number
that fits in an integer...
On Fri, Feb 26, 2010 at 3:01 PM, Oakley Masten
<email@hidden> wrote:
> Hi all
> I can't find the answer to this and don't know where else to look.
>
>
> set x to 24.95 * 100
>
> --> x = 2495.0
>
> set x to 124.95 * 100
>
> --> x = 1.2495E+4
>
> if I set XasText to (x as text)
>
> I still get 1.2495E+4
>
> How do I get this to show up as 12495 ?
>
> Thanks
>
> Oakley
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden