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
1892  |  1894
Subject: 
modulo in legOS 2.4 ?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 24 May 2001 19:16:07 GMT
Viewed: 
1473 times
  
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



Message has 2 Replies:
  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)
  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)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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