Am i detecting Xbox controller right analog stick position correctly?

I’m trying to detect analog position. Basically if the user presses the right analog stick up , right, or slanted i want to detect it. The code below works, it detects if the analog stick is in the upper right corner. But i was wondering if theirs a more precise way of doing this?

    //if the x and y joystick axis is greater than .1 .detects if analog stick is in the right corner
        if (InputController.RightBumper == true && InputController.JoystickInput.x >= .1f && InputController.JoystickInput.y >= .1f)
        {

            JoystickState = EJoyStickDirection.UPPERRIGHT;
            print(InputController.JoystickInput.x + " , " + InputController.JoystickInput.y);

        }

Define more precise.

The input from a joystick basically maps to a square. You can check if the stick is in any position on that square using the same basic logic you have used here. If you define the position you want the stick in more precisely, you will get more precise results.

Okay i see i I thought their was some type of advanced formula such as using math functions, advance vector algorithms and all that jazz. I had to use. I’m shocked that an algorithm i made is actually appropriate for this occasion. Thanks For the reply Kiwasi.