max Summary Returns the highest number from the specified range of values. Signatures Click on a signature to select it and view its documentation. public static int max(...int values) public static double max(...double values) Usage public static int max(...int values) public static double max(...double values) Returns The highest number from the specified inputs. The highest number from the specified inputs. Parameters values The range of values. Parameters values The range of values. Description Returns the highest number from the specified range of values. Returns the highest number from the specified range of values. Examples Basic Usage 123import System; Console.log(Math.max(1, 2, 5, 3)); // 5 Basic Usage 123import System; Console.log(Math.max(5.5d, 1.1d, 2.2d)); // 5.5 Share HTML | BBCode | Direct Link