| | 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)
| |