The Signal State

The Signal State

Ei tarpeeksi arvosteluja
Epsilon Comparison
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tunnisteet: Puzzle
Tiedostokoko
Julkaistu
429.719 KB
28.2. klo 11.56
1 muutos ( näytä )

Tilaa ladataksesi
Epsilon Comparison

Kuvaus
Determine whether the given value A is significantly greater than or less than the given value B.

A and B are only considered "significantly different" if their difference is more than the given positive value Epsilon.

If A ≈ B (within Epsilon units), output 0.
Otherwise,
If A < B, output -100.
If A > B, output 100.


Inputs: A, B, Epsilon
Output: Comparison result