Show All

# Math Object

Provides several math-related methods that can be used in Microsoft Office InfoPath 2003 forms.

## Remarks

Use the Math property of the Util object to return a Math object.

Note This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

## Using the Math object

The Math object contains the following methods:

Function | Description
--- | ---
Avg | Returns the average value of all the numerical elements in a node set.
Eval | Returns the set of results calculated when the expression is applied to each set of elements in the context.
Max | Returns the largest value of all the numerical elements in a node set.
Min | Returns the smallest value of all the numerical elements in a node set.
Nz | Replaces empty values in the specified node list with "0" (zero).

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp