• 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: rounding integers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rounding integers


  • Subject: Re: rounding integers
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 31 Oct 2003 10:47:42 -0700

On Oct 31, 2003, at 10:17 AM, Chet Goetz wrote:

Thanks for the advice, but your code gives me an error:
"Can't make 314.159265358979 into a integer."

Am I doing something wrong?

Try this instead:
(pi * 100) div 1 / 100
--> 3.14

--
"Never ask a man what computer he uses. If it's a Mac, he'll tell you. If it's not, why embarrass him?" --Tom Clancy
_______________________________________________
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.
  • Prev by Date: Re: rounding integers
  • Next by Date: Re: rounding integers
  • Previous by thread: Re: rounding integers
  • Next by thread: Re: rounding integers
  • Index(es):
    • Date
    • Thread