fmax

Returns the larger _decimal value between x and y

@IEEECompliant("maxNum", 19)
fmax
(
D1
D2
)
(
auto const ref D1 x
,
auto const ref D2 y
)
if ()

Throws

InvalidOperationException if x or y is signaling NaN

Special values

xyfmax(x, y)
NaNanyy
anyNaNx

Examples

decimal32 x = 3;
decimal64 y = -4;
assert (fmax(x, y) == 3);

Meta