Subject:
|
Re: modulo in legOS 2.4 ?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 24 May 2001 20:32:28 GMT
|
Viewed:
|
1668 times
|
| |
| |
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 function... please tell me if I'm wrong, I can
program but my maths is not what it should be ;)
- Ciaran
|
|
Message is in Reply To:
| | 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)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|