To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 507
  Modulo operator in NQC
 
I'm trying to use the modulo operator in NQC, but I get an error that it expects constants. I checked the docs and that indeed seems to be the case. While I'm sure there must be instances where one would use constants on both sides of the operator, (...) (25 years ago, 30-Mar-00, to lugnet.robotics.rcx.nqc)
 
  Re: Modulo operator in NQC
 
(...) The limitation is more historical than anything else. Originally expressions were all evaluated at compile time, which is why I have a bunch of operators (%, >>, <<) that have no corresponding bytecodes in the firmware. Over the last few (...) (25 years ago, 31-Mar-00, to lugnet.robotics.rcx.nqc)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR