To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1893
  RE: modulo in legOS 2.4 ?
 
Ummm, that would be the % operator in C, right? (...) (24 years ago, 24-May-01, to lugnet.robotics.rcx.legos)
 
  modulo in legOS 2.4 ?
 
hi all, just wonderin if there is such a thing as a modulo opperator in legOS 2.4 ? i checked the stdlib.h (which seems to be the place where the math functions are), but no luck. regards kenneth johansen kennethj@stud.cs.uit.no (24 years ago, 24-May-01, to lugnet.robotics.rcx.legos)
 
  Re: modulo in legOS 2.4 ?
 
do you mean 3mod3 = 0 or mod(-3)=mod(3)= 3 ? If you mean the first then you want the %age operator, otherwise you want an 'abs' function not sure if legOS supports this as doesn't support floats(entirely), but you can always write a quick (...) (24 years ago, 24-May-01, to lugnet.robotics.rcx.legos)

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