MATH_NUMERIC Data Type

The MATH_NUMERIC data type exclusively represents all numeric values in JD Edwards EnterpriseOne software. The values of all numeric fields on a form or batch process are communicated to business functions in the form of pointers to MATH_NUMERIC data structures. MATH_NUMERIC is used as a data dictionary (DD) data type.

The data type is defined as follows:

struct tagMATH_NUMERIC
{
 ZCHAR String[MAXLEN_MATH_NUMERIC+1];/* Just the digits - no separators */
 BYTE Sign;    /* �-� if negative, 0x00 otherwise */
 ZCHAR EditCode;   /* The Data Dictionary edit code to Format for display */
 short nDecimalPosition;  /* # of digits from right end of string to decimal point⇒
 */
 short nLength;   /* The number of digits in s */
 WORD wFlags;   /* Processing Flags */
 ZCHAR szCurrency[CURRENCY_CODE_SIZE];/* The Currency Code */
 short nCurrencyDecimals;  /* The Number of Currency Decimals */
 short nPrecision;   /* The Data Dictionary Size */
};

This table lists various elements:

MATH_NUMERIC Element

Description

String

Digits without separators

Sign

A minus sign indicates the number is negative, otherwise the value is 0x00

EditCode

Data dictionary edit code that formats the number for display

nDecimalPosition

Number of digits from the right to place the decimal

nLength

Number of digits in the string

wFlags

Processing flags

szCurrency

Currency code

nCurrencyDecimals

Number of currency decimals

nPrecision

Data dictionary size