lua-users home
lua-l archive

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


On Tue, Jan 12, 2021 at 2:25 AM bel wrote:
> I understand your concern about "a/b*c".
> But why do you suggest writing "a/b/c" as "(a/b)/c" ?

But look at this:
               a
              ---
   a           b
-------  =  -------
   b           c
  ---
   c

... or not?

Indeed, fractions might have different priorities:
the longer the line the lower priority of the division operation.
If all the "lines" have the same "length"
for example, as in "a/b/c/d",
usual school math rules are applied:
the calculation goes from left to right.