• 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: Fri, 05 Jun 2009 08:51:44 +1000
  • Thread-topic: Same code gives different answers in 2 different scripts

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

> I understand why that makes a certain sense, but round is a math
> operation. There are lots of math operations.
>
> Formatting a value--numeric or otherwise--as text is a separate
> operation from rounding, multiplication or, say, concatenation and
> filtering.

Right, but it's not like there's no precedent for mixing stuff like this. A
good example is:

 1.5 as integer

This used to throw an error, because of course 1.1 can't be made into an
integer. Someone decided this wasn't helpful, so now the coercion does a
rounding operation and then coerces the result of that.

--
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: "Mark J. Reed" <email@hidden>
    • Re: Same code gives different answers in 2 different scripts
      • From: Doug McNutt <email@hidden>
References: 
 >Re: Same code gives different answers in 2 different scripts (From: Chris Page <email@hidden>)

  • Prev by Date: Re: Get InDesign Spread Page Numbers
  • 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