1: #include "../h/rt.h"
   2: 
   3: /*
   4:  * numeric(x) - convert x to numeric type.
   5:  */
   6: Xnumeric(nargs, arg1, arg0)
   7: int nargs;
   8: struct descrip arg1, arg0;
   9:    {
  10:    union numeric n1;
  11: 
  12:    switch (cvnum(&arg1, &n1)) {
  13: #ifdef LONGS
  14:       case T_LONGINT:
  15: #else LONGS
  16:       case T_INTEGER:
  17: #endif LONGS
  18:          mkint(n1.integer, &arg0);
  19:          break;
  20: 
  21:       case T_REAL:
  22:          mkreal(n1.real, &arg0);
  23:          break;
  24: 
  25:       default:
  26:          fail();
  27:       }
  28:    }
  29: 
  30: Procblock(numeric,1)

Defined functions

Xnumeric defined in line 6; never used
Last modified: 1984-11-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 679
Valid CSS Valid XHTML 1.0 Strict