SteveO Posted May 23, 2007 Share Posted May 23, 2007 Okay, maybe I'm over thinking this, but I just can't figure outa way to do this... how would I go about making a function to define an odd number from an even number... Link to comment Share on other sites More sharing options...
Sardith Posted May 23, 2007 Share Posted May 23, 2007 #include <Math.au3> _MathCheckDiv ( $i_NumA, $i_NumB ) Look at the help file. It's in there. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
SteveO Posted May 23, 2007 Author Share Posted May 23, 2007 (edited) Thank, I appreciate it. Edited May 23, 2007 by SteveO Link to comment Share on other sites More sharing options...
Toady Posted May 23, 2007 Share Posted May 23, 2007 Func _IsEven($number) Return Not Mod($number,2) EndFunc Returns True if its even, returns false if its odd. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now