• 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: Very strange dates - BUG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very strange dates - BUG


  • Subject: Re: Very strange dates - BUG
  • From: Doug McNutt <email@hidden>
  • Date: Thu, 30 Jan 2003 05:47:56 -0700

At 11:29 -0700 1/29/03, Michelle Steiner wrote:
>So, what is the difference between + (-1) and - 1?

Try: set r to -2^2

The return is +4 because Applescript gives higher precedence to a unary minus than anything else. It's possible that an associated bug affects x +(-1).

set r to 0-2^2

will return the answer as learned in school because the - sign is now a binary operator.
--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
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.

  • Follow-Ups:
    • Re: Very strange dates - BUG
      • From: Thomas <email@hidden>
References: 
 >Re: Very strange dates - BUG (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Run a Macro in MS Excel (v.X)
  • Next by Date: Progress Indicator class badly displayed
  • Previous by thread: Re: Very strange dates - BUG
  • Next by thread: Re: Very strange dates - BUG
  • Index(es):
    • Date
    • Thread