ilogb

Returns the truncated base 10 logarithm of the argument.

"...The integer which is the exponent of the magnitude of the most significant digit of the operand. (As though the operand were truncated to a single digit while maintaining the value of that digit and without limiting the resulting exponent)". (p. 47)

int
ilogb
(
D
)
(
in D num
)

Meta

Standards

Implements the 'logb' function in the specification. (p. 47)

Flags: INVALID_OPERATION, DIVISION_BY_ZERO.