The Signal State

The Signal State

Otillräckligt med betyg
Epsilon Comparison
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Taggar: Puzzle
Filstorlek
Lades upp
429.719 KB
28 feb @ 11:56
1 ändringsnotis ( visa )

Abonnera för att ladda ner
Epsilon Comparison

Beskrivning
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