Skip to content

format

typescript
Mathf.Max(lhs, rhs)

class: Mathf

description

Returns the maximum value among two or more values.

parameter

param_nametypedescription
lhsnumberValue 1
rhsnumberValue 2

return

typedescription
numberThe maximum value among the two values.

code example

typescript
let max = Mathf.Max(10,11)//max=11