Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 164384 - incorrect description og log2 function
incorrect description og log2 function
Product: Fedora
Classification: Fedora
Component: man-pages (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ivana Varekova
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2005-07-27 11:36 EDT by Sjoerd Mullender
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: man-pages-2.05-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-08-04 09:13:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sjoerd Mullender 2005-07-27 11:36:06 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6

Description of problem:
The man page of log2 says:

"The log2() function returns the natural logarithm of x."

This is obviously wrong: the log2 function returns the 2-logarithm of x, not the e-logarithm.

Also, I wonder (but don't know) whether the CONFORMING TO section is correct.  log2 seems to only be available when compiling in C99 mode, so I wonder if it was already available in the other Unix versions mentioned.  (log2 is vertainly not available when compiling without -std=XXX option, even when math.h is included.)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. man log2

Actual Results:  "The log2() function returns the natural logarithm of x."

Expected Results:  "The log2() function returns the base-2 logarithm of x."

Additional info:
Comment 1 Sjoerd Mullender 2005-07-27 11:53:17 EDT
The bit about the CONFORMING TO section also holds for exp2.
Comment 2 Ivana Varekova 2005-08-04 09:13:02 EDT
This bug is fixed in the last version of man-pages (man-pages-2.05-1). 

Note You need to log in before you can comment on or make changes to this bug.