• 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: Can someone explain this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can someone explain this?


  • Subject: Re: Can someone explain this?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sat, 14 Mar 2009 16:48:27 -0400

As I said, if you use pow(), there's no ambiguity. -pow(3,2) is
distinct from pow(-3,2).  With the operator form, it just depends on
how the language ranks the precedence of the exponentiation operator
with respect to unary minus.


On 3/14/09, Philip Aker <email@hidden> wrote:
> On 2009-03-14, at 11:22:57, Mark J. Reed wrote:
>
>> $ echo 'puts [expr -3**2]' | tclsh   # requires TCL 8.5, no **
>> operator in <= 8.4
>
>
> For those sufferin' with Tcl 8.4 it's:
>
> $ tclsh <<< 'puts [expr pow(-3,2)];';
>
>
> Philip Aker
> echo email@hidden@nl | tr a-z@. p-za-o.@
>
> Democracy: Two wolves and a sheep voting on lunch.
>
>

--
Sent from my mobile device

Mark J. Reed <email@hidden>
 _______________________________________________
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: Can someone explain this?
      • From: Philip Aker <email@hidden>
    • Re: Can someone explain this?
      • From: Doug McNutt <email@hidden>
References: 
 >Can someone explain this? (From: Michelle Steiner <email@hidden>)
 >Re: Can someone explain this? (From: Philip Aker <email@hidden>)
 >Re: Can someone explain this? (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Can someone explain this? (From: "Mark J. Reed" <email@hidden>)
 >Re: Can someone explain this? (From: "Mark J. Reed" <email@hidden>)
 >Re: Can someone explain this? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Can someone explain this?
  • Next by Date: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Previous by thread: Re: Can someone explain this?
  • Next by thread: Re: Can someone explain this?
  • Index(es):
    • Date
    • Thread