Complete.Org: Mailing Lists: Archives: discussion: March 2000:
[aclug-L] Re: New C question
Home

[aclug-L] Re: New C question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ACLUG <discussion@xxxxxxxxx>
Subject: [aclug-L] Re: New C question
From: Jeff <schaller@xxxxxxxxxxxxx>
Date: Sat, 18 Mar 2000 07:22:26 -0600 (CST)
Reply-to: discussion@xxxxxxxxx

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


[Prev in Thread] Current Thread [Next in Thread]