The Standard LibrarymathMethodsmaxOn this pagemaxReturns the maximum of given numbers. max(20, 15); //20max(-20, 0); //0 Syntax max(a, b) Returns The bigger value as a double.