Message Board


Message Board > Malarkey > I am now a professor of maths.

April 30, 2014, 18:34
Mezzmer
Square-theorist
792 posts

<fholm> !false is true
<squarefish> always?
<squarefish> I just had a discussion with my gf about something, then I figured !false was false right?
<squarefish> jesus
* bkw (~bkw@d75-156-51-189.bchsia.telus.net) has joined #unity3d
<squarefish> so I write x1 = (2 * -x2) + 1; will flip x1 = 1 to 0 and x1 = 0 to 1
____________
#
May 4, 2014, 16:59
Zomg
None
641 posts
!false is an inefficient CPU instruction, assembly-wise. The command 'false' itself implies a CPU memory check and register storage, so in the end it will be checking if false equals false, which is fruitless.

I think this is better:
http://en.wikipedia.org/wiki/B%C3%A9zier_spline

But congratulations on your math skills! :)
____________
#
May 17, 2014, 22:00
Dennis
どこかにいる
2092 posts

if (x==1)
x=0;
else
x=1;

does exactly the same and when a collegue takes over he doesn't lose time (which is money) on figuring out what the hell you wrote
____________
Kwakkel
#

Message Board > Malarkey > I am now a professor of maths.

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!