Problem Description

Given three number strings x min max. If x is NaN print NaN. Else clamp x into [min,max] and print the result.

Input Format

One line: x min max.

Output Format

One output number or NaN.

Constraints

Inputs are valid number strings.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next