atanpi

Calculates the arc tangent of x divided by π, returning a value ranging from -1/2 to 1/2. Exceptions:

InvalidOperationExceptionx is signaling NaN
InexactExceptionthe result is inexact
UnderflowExceptionthe result is too small to be represented
More...
@IEEECompliant("atanPi", 43)
D
atanpi
(
D
)
(
auto const ref D x
)

Detailed Description

Special values

xatan(x)
NaNNaN
±0.0±0.0
±∞±1/2

Examples

decimal32 radians = 1;
assert (atanpi(radians) == decimal32("0.25"));

Meta