Compare Floats with Epsilon

Python Medium 3 views
Back to Questions

Problem Description

Read two floats a and b. If |a-b| < 1e-9 output EQUAL. Else output GREATER if a>b else SMALLER.

Input Format

One line: a b.

Output Format

One word.

Sample Test Case

Input:
0.1 0.1000000005
Output:
EQUAL

Constraints

Input is valid floats.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next