Export (0) Print
Expand All
Expand Minimize

min Function [AX 2012]

Updated: January 18, 2010

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the lesser of the two specified values.


anytype min(anytype object1, anytype object2)

Parameter

Description

object1

The first value.

object2

The second value.

The lesser of the two values specified by the object1 and object2 parameters.

  • min(2,33) //Returns 2

static void minExample(Args _arg)
{
    anytype a;
    real r = 3.0;
    real s = 2.0;
    ;
 
    a = min(r, s);
    print num2Str(a, 1, 2, 1, 1) + " is less than the other number.";
 
    pause;
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show:
© 2014 Microsoft