By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,663 Members | 762 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,663 IT Pros & Developers. It's quick & easy.

less than or equal to operator

P: 14
when using <= and >= is it a bad idea to put them in the same statement?

i.e. suppose i and j form an interval and random is a number that may or maynot be inside this interval.

if(i<=random && j>=random)
do stuff;
not there;

could this return false information??
Apr 16 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.