Problem 55230. Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, π, (also known as τ).
If x is equally close to two values (eg ), you can return either value (so either 1 or would be correct in this example).
Solution CommentsShow comments
Problem Recent Solvers269