September 11, 2006 [Issue 344] New: Typo in docs for std.math.ilogb | ||||
---|---|---|---|---|
| ||||
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@digitalmars.com ReportedBy: clugdbug@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 * ) -- |
September 19, 2006 [Issue 344] Typo in docs for std.math.ilogb | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=344 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2006-09-19 15:32 ------- Fixed in DMC 0.167. -- |
Copyright © 1999-2021 by the D Language Foundation