言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Mathf.Max

public static function Max(params values: float[]): float;

Description

Returns largest of two or more values.

	// prints 2.4
	print(Mathf.Max(1.2, 2.4));
public static function Max(params values: int[]): int;

Description

Returns the largest of two or more values.

	// prints 2
	print(Mathf.Max(1, 2));