• 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: String to sum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String to sum


  • Subject: Re: String to sum
  • From: Gnarlodious <email@hidden>
  • Date: Tue, 12 Oct 2004 19:19:35 -0600

Title: Re: String to sum
Entity Martin Orpen spoke thus:


set
biglist to {}
set
opList to {"*", "+", "/", "-"}
repeat 1000 times
   set end of
biglist to random number from 1 to 1000
   set end of
biglist to some item of opList
end repeat
set
n to do shell script "echo \"scale=8 \n" & (biglist as string) & "1\" | bc"
n

WOW! That’s impressive. Thanks for proving the point. “bc” is the way to go with heavy math.


— Gnarlie

Gore invented the internet, Bush invented the internets

 _______________________________________________
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

References: 
 >Re: String to sum (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: Photoshop save options?
  • Next by Date: Re: This is ridiculous
  • Previous by thread: Re: String to sum
  • Next by thread: Re: String to sum
  • Index(es):
    • Date
    • Thread