Greater number

Given two numbers, write a method that returns greater one.
Expected input and output
GreaterNumber(2.1, 3) → 3 GreaterNumber(-5, 0) → 0 GreaterNumber(-111.22,111.222) → 111.222
using System;

namespace CSharpExercises.Exercises.Library_functions
{
    class GreaterNumberTask
    {
        public static double GreaterNumber(double x, double y)
        {
            return Math.Max(x, y);
        }

        public static void Main()
        {
            Console.WriteLine(GreaterNumber(24.5, 127));    //127
            Console.WriteLine(GreaterNumber(-1391, -9123)); //-1391
            Console.WriteLine(GreaterNumber(-543, -543));   //543
        }
    }
}