Computer Science Canada Quick Math Function Question |
Author: | GoodbyeSoberDay1 [ Mon Mar 31, 2008 11:45 am ] |
Post subject: | Quick Math Function Question |
Hi, What would i use for "Not equal to" (in writing this is and equal sign with a slash through it), so I'm guessing it's "/=", just need to confirm it. Thanks |
Author: | Vermette [ Mon Mar 31, 2008 11:49 am ] |
Post subject: | RE:Quick Math Function Question |
!= /= is division shorthand. i.e. if a=10, then a=/2; will result in a=5; |
Author: | GoodbyeSoberDay1 [ Mon Mar 31, 2008 11:50 am ] |
Post subject: | Re: Quick Math Function Question |
Thanks alot! |
Author: | Vermette [ Mon Mar 31, 2008 11:51 am ] |
Post subject: | RE:Quick Math Function Question |
Not so fast! Looks like I got ahead of myself. != is C syntax. Try not= |
Author: | GoodbyeSoberDay1 [ Mon Mar 31, 2008 12:00 pm ] |
Post subject: | Re: Quick Math Function Question |
Lol, alright. Thanks. |
Author: | Carey [ Mon Mar 31, 2008 12:11 pm ] |
Post subject: | RE:Quick Math Function Question |
!= is also Java syntax. ahh Java.......so much more annoying that Turing...and a TON more powerful |
Author: | A.J [ Mon Mar 31, 2008 1:14 pm ] |
Post subject: | Re: Quick Math Function Question |
or also try ~= instead of not=.................go BITWISE |