I love the smell of UnrealEd crashing in the morning. – tarquin

Min function

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 19:11, 2 July 2010 by Eliot (Talk | contribs) (Created page with '<noinclude>Min is math function provided by the {{classgames|Object}} class.</noinclude> {{code|native(249) static final function int '''Min''' (int '''A''', [[…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Min is math function provided by the Object(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3) class.

native(249) static final function int Min (int A, int B)

Returns the smaller of the two values. Note that when passing float parameters to this function, they are automatically typecasted to type int. If you don't want this, use the FMin() function instead.