Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: operator precedence, just curious...

From: greggirwin:starband at: 5-Oct-2001 13:38

Hi Tom, << Whats up with this? I'm just curious, and probably missing something simple...>> You have to use parens in REBOL to force operator precedence:
>> (6 * 7) - (3 / 4)
== 41.25 Or you could also do it this way if you're an RPN kinda' guy:
>> subtract multiply 6 7 divide 3 4
== 41.25 --Gregg