☜ | Error Code M9M[UMPS] by Example | ☞ |
Introduced in the 1995 ANSI M[UMPS] language standard.
This error means that during the evaluation of an expression containing a division (either common (/) or integer division (\)), a ‘righthand’ operand was encountered that has a zero value.
Set (TOTAL,NUMBER)=0
Set I="" For Set I=$Order(A(I))
Quit:I="" Do
. Set N=N+1,TOTAL=TOTAL+A(I)
. Quit
Set AVERAGE=TOTAL/NUMBER
This error will occur in the case that array A has no members.
Set X="Apples"
Set Y=TOTAL\X+Y
This error will also occur for:
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 16-Nov-2023, 14:42:23.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)