[Issue 344] New: Typo in docs for std.math.ilogb
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Sep 10 23:38:30 PDT 2006
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=344
           Summary: Typo in docs for std.math.ilogb
           Product: D
           Version: 0.166
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: clugdbug at yahoo.com.au
Since this returns an int, it cannot possibly return +infinity.
It actually returns int.max, following the C99 standard.
 *      $(TABLE_SV
 *      <tr> <th> x               <th>ilogb(x)     <th> Range error?
 *      <tr> <td> 0               <td> FP_ILOGB0   <td> yes
 *      <tr> <td> ±∞ <td> +∞    <td> no
 *      <tr> <td> $(NAN)          <td> FP_ILOGBNAN <td> no
 *      )
Should be:
 *      $(TABLE_SV
 *      <tr> <th> x               <th>ilogb(x)     <th> Range error?
 *      <tr> <td> 0               <td> FP_ILOGB0   <td> yes
 *      <tr> <td> ±∞ <td> int.max     <td> no
 *      <tr> <td> $(NAN)          <td> FP_ILOGBNAN <td> no
 *      )
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list