[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calc: `*' binds more strongly than `/'

From: Luc Teirlinck
Subject: Re: Calc: `*' binds more strongly than `/'
Date: Thu, 26 Apr 2007 18:17:32 -0500 (CDT)

Christian Schlauer wrote:

   Luc, I only wanted `/' to be treated equal as `*', not less than `*'
   as it is at the moment, but not necessarily more ;-)

Yes, but given left-associativity, the _result_ of giving them equal
precedence is actually to give, in an expression containing only `*' and
`/', `/' higher precedence, is it not?  The important consequence of
that is that in a product of rational numbers devoid of parentheses,
the rational numbers get actually recognized and treated as rational
numbers, in as far as the result is concerned, regardless of how the
actual algorithm achieves this (precedence or left-associativity).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]