Scoop API

scoop:scoop.core:0.1.0

src/floating_comparison.scoop

Selected production source · src/floating_comparison.scoop

1/**
2 * The result of an IEEE numerical comparison, including an explicit unordered result for NaN.
3 */
4public enum IeeeComparison {
5 /**
6 * The left operand is numerically smaller.
7 */
8 Less,
9 /**
10 * The operands are numerically equal, including opposite signed zeros.
11 */
12 Equal,
13 /**
14 * The left operand is numerically larger.
15 */
16 Greater,
17 /**
18 * At least one operand is NaN; no ordered comparison holds.
19 */
20 Unordered