Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Error Code M2

M[UMPS] by Example

M2, Invalid combination with P fncodatom

Introduced in the 1995 ANSI M[UMPS] language standard.

An fncodatom is one of the special formatting parameters of the function $FNumber. Currently, the valid codes that may be specified as such are + (plus, force plus sign), , (comma, insert delimiters every three digits), - (minus, suppress minus sign), p or P (represent negative numbers in parentheses) and t or T (trailing sign). Any incompatible combination of these codes or any other character specified in the second parameter of the function $FNumber will cause this error to occur.

Write $FNumber(AMOUNT,"+Q")
Write $FNumber(AMOUNT,"-t",3)
Write $FNumber(AMOUNT,"Z",2)

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

The information in this page is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 29-Nov-2011, 22:30:57.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)