max

Summary

Returns the highest number from the specified range of values.

Signatures

Click on a signature to select it and view its documentation.

Usage

public static int max(...int values)

Returns

The highest number from the specified inputs.

Parameters

values

The range of values.

Description

Returns the highest number from the specified range of values.

Examples

Basic Usage
1
2
3
import System;
 
Console.log(Math.max(1, 2, 5, 3)); // 5

Share

HTML | BBCode | Direct Link