feqrel

To what precision is x equal to y?

int
feqrel
(
X
)
(
X x
,
X y
)

Return Value

Type: int

the number of significand bits which are equal in x and y. eg, 0x1.F8p+60 and 0x1.F1p+60 are equal to 5 bits of precision.

$(SVH3 x, y, feqrel(x, y) ) $(SV3 x, x, typeof(x).mant_dig ) $(SV3 x, $(GT)= 2*x, 0 ) $(SV3 x, $(LE)= x/2, 0 ) $(SV3 $(NAN), any, 0 ) $(SV3 any, $(NAN), 0 )
Special Values

Remarks: This is a very fast operation, suitable for use in speed-critical code.

Meta