• 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: Convert long number to string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert long number to string


  • Subject: Re: Convert long number to string
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 17 Apr 2004 16:55:47 -0500

At 09:48 -0600 04/17/2004, Gnarlodious wrought:

I seem to recall a discussion about this recently but the archives aren't up
and running.

set longNumber to to "1082204521"
set exponent to longNumber as number --> 1.082204521E+9
set numberString to exponent as string --> "1.082204521E+9"

I want to convert the exponent to long number before converting it to a
string.
______________________________________________________________________

I prefer to use the Satimage osax for this sort of thing:

set longNumber to "1082204521"
set exponent to longNumber as number --> 1.082204521E+9

set x to format exponent into "############.##########"

--> 1082204521.0


Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Convert long number to string (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Changing Spelling Dictionary?
  • Next by Date: Re: Convert long number to string
  • Previous by thread: Re: Convert long number to string
  • Next by thread: Re: Convert long number to string
  • Index(es):
    • Date
    • Thread