← Back to index
|
Original Bugzilla link
Bug 344 – Typo in docs for std.math.ilogb
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-09-11T01:38:00Z
Last change time
2014-02-15T13:29:04Z
Assigned to
bugzilla
Creator
clugdbug
Comments
Comment #0
by clugdbug — 2006-09-11T01:38:28Z
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 * )
Comment #1
by bugzilla — 2006-09-19T15:32:11Z
Fixed in DMC 0.167.