The Signal State

The Signal State

Not enough ratings
Epsilon Comparison
   
Award
Favorite
Favorited
Unfavorite
Tags: Puzzle
File Size
Posted
429.719 KB
28 Feb @ 11:56am
1 Change Note ( view )

Subscribe to download
Epsilon Comparison

Description
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