|
|
|
|
|
|
|
☜ | Meaning of numlit1984 Version of ANSI Standard | ☞ |
3.2.4.2 Meaning of numlit
Note that numlit denotes only nonnegative values. The
process of converting the spelling of an occurrence of
numlit into its numeric data value consists of the
following steps.
- If the mant has no ".", place one at its right end.
- If the exp is absent, skip step c.
- If the exp has a plus or has no sign, move the "." a
number of decimal digit positions to the right in the mant
equal to the value of the intlit of exp, appending zeros
to the right of the mant as necessary. If the exp has a
minus sign, move the "." a number of decimal digit positions to
the left in the mant equal to the value of the
intlit of exp, appending zeros to the left of the
mant as necessary.
- Delete the exp and any leading or trailing zeros of the
mant.
- If the rightmost character is ".", remove it.
- If the result is empty, make it "0".
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.
This page most recently updated on 13-Sep-2014, 09:07:42.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)