• 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: Number Format Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number Format Problem


  • Subject: Re: Number Format Problem
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 21 Mar 2008 12:41:46 -0700
  • Thread-topic: Number Format Problem

For Interface Builder, use one of those Formatters to get it into exactly
the format you want, from the (number or) integer format. You can specify
two decimal places there.

--
Paul Berkowitz


> From: John Mistler <email@hidden>
> Date: Fri, 21 Mar 2008 12:37:10 -0700
> To: Applescript Users <email@hidden>
> Subject: Re: Number Format Problem
>
> I didn't want to complicate the question with the fact that I am
> displaying the result in an Interface Builder text field, but that
> would qualify as an Applescript-Studio question.  I thought this was
> more of an applescript question, so I went here first.
>
> For display purposes, how can I get the proper format?
>
> Thanks,
>
> John
>
> On Mar 21, 2008, at 12:31 PM, Michelle Steiner wrote:
>
>> On Mar 21, 2008, at 12:29 PM, John Mistler wrote:
>>> I'm trying to convert a string to a number, so that I can use it in
>>> an arithmetic function, but there is a problem:
>>>
>>> set theAmount to "12345.00"
>>> set theAmount to theAmount as number
>>> log theAmount --> 1.2346E+4
>>>
>>> How can I prevent the number from converting to this format?
>> If you're going to use it in an arithmetic function, what difference
>> does it make how it is displayed?
>>
>> -- Michelle
>>
>> -- 
>> Life is not a journey to the grave with the intention of arriving
>> safely in a pretty and well preserved body, but rather to skid in
>> broadside, thoroughly used up, totally worn out, and loudly
>> proclaiming, "WOW! What a ride!!!"
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> email@hidden
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to 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


 _______________________________________________
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

  • Follow-Ups:
    • Re: Number Format Problem
      • From: John Mistler <email@hidden>
    • Re: Number Format Problem
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Number Format Problem (From: John Mistler <email@hidden>)

  • Prev by Date: Re: Number Format Problem
  • Next by Date: Re: mounting volumes
  • Previous by thread: Re: Number Format Problem
  • Next by thread: Re: Number Format Problem
  • Index(es):
    • Date
    • Thread