[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One more question



vilohidi@mbnet.fi wrote:
> 
> Came in to my mind, Is there any better way to see if some integer is
> +- 10 from another integer, than:
> 
> if((a<b+11) && (a>b-11))

Well, if you're doing this a lot, you could always write an inline/macro
function to do it, but AFAIK, there's no more efficent way to do it.

-BenC