Min - Math

Revision as of 15:15, 2 December 2015 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' Math Script Returns the smaller of the two values passed in. == Syntax == <source lang="papyrus"> float Functio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Math Script

Returns the smaller of the two values passed in.

SyntaxEdit

float Function Min(float afValue1, float afValue2) global

ParametersEdit

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

Return ValueEdit

The smaller of the two values

ExamplesEdit

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

See AlsoEdit