Skip to content

format

typescript
Mathf.Min(lhs, rhs)

class: Mathf

description

Returns the minimum value among two or more values.

parameter

param_nametypedescription
lhsnumberValue 1
rhsnumberValue 2

return

typedescription
numberThe minimum value among the two values.

code example

typescript
let min = Mathf.Min(10,11)//min=10