[aclug-L] Re: New C question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, 17 Mar 2000, Larry Bottorff wrote:
> Let's say I need to know what power of 2 a number is. Mathematically,
> that's just log2(number), right? There doesn't seem to be a log2 in C,
> right? How can I fake one?
log10(number) / log10(2);
-jeff
--
Microsoft recently released its new Windows 2000. What are some of the
features of the new operating system?
- Crashes up to 300 percent faster than Windows 98
http://www.theonion.com
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
|
|