Re: Can someone explain this?
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