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