scaledProd

Multiplies elements of x using a higher precision, rounding only once at the end.

@IEEECompliant("scaledProd", 47)
D
scaledProd
(
D
)
(
const(D)[] x
,
out int scale
)

Return Value

Type: D

x0 * x1 * ... * xn Notes: To avoid overflow, an additional scale is provided that the final result is to be multiplied py 10scale

Throws

InvalidOperationExceptionany x is signaling NaN
InvalidOperationExceptionthere is one infinite element and one 0.0 element
OverflowExceptionresult is too big to be represented
UnderflowExceptionresult is too small to be represented
InexactExceptionresult is inexact

Meta