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

Meaning of numlit

1995 Version of ANSI (Equivalent to Current ISO Version) of Standard

7.1.4.4 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.

  1. If the mant has no ".", place one at its right end.
  2. If the exp is absent, skip step c.
  3. 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.
  4. Delete the exp and any leading or trailing zeros of the mant.
  5. If the rightmost character is ".", remove it.
  6. If the result is empty, make it "0".
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.

This page most recently updated on 13-Sep-2014, 09:07:42.

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