• 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: Same code gives different answers in 2 different scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Same code gives different answers in 2 different scripts


  • Subject: Re: Same code gives different answers in 2 different scripts
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 03 Jun 2009 09:56:34 +1000
  • Thread-topic: Same code gives different answers in 2 different scripts

On 3/6/09 8:52 AM, "Chris Page" <email@hidden> wrote:

> to findRound of num given numDecimals:n
> set x to 10 ^ n
> return (round (num * x)) / x
> end findRound

set rounded_height to findRound of 3 given numDecimals:0
--> 3.0

--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>


 _______________________________________________
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: Same code gives different answers in 2 different scripts
      • From: Chris Page <email@hidden>
References: 
 >Re: Same code gives different answers in 2 different scripts (From: Chris Page <email@hidden>)

  • Prev by Date: Re: InDesign - CS2 and CS3 duplicate method is different?
  • Next by Date: Re: Same code gives different answers in 2 different scripts
  • Previous by thread: Re: Same code gives different answers in 2 different scripts
  • Next by thread: Re: Same code gives different answers in 2 different scripts
  • Index(es):
    • Date
    • Thread