IEEE‐754‐2008 maxNum: return the larger of two values.

Synopsis

Declared in <llvm/ADT/APFloat.h>

APFloat
maxnum(
    APFloat const& A,
    APFloat const& B);

Description

Returns the larger of the 2 arguments if both are not NaN. If either argument is a qNaN, returns the other argument. If either argument is sNaN, return a qNaN. +0 is treated as ordered greater than ‐0.

Return Value

the larger of A and B under IEEE‐754‐2008 maxNum rules

Parameters

Name

Description

A

first operand

B

second operand

Created with MrDocs