Min - Math

From Creation Kit
Jump to: navigation, search

Member of: Math Script

Returns the smaller of the two values passed in.

Syntax

float Function Min(float afValue1, float afValue2) global

Parameters

  • afValue1: The first value.
  • afValue2: The second value.

Return Value

The smaller of the two values

Examples

int a = Min(10, 15) ; a == 10
int b = Min(-1.5, -3) ; b == -3

See Also