IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2006, 9:59:45 AM (20 years ago)
Author:
eugene
Message:

fixed evaluation of zero-padded ints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/dvomath.c

    r4689 r6250  
    5757
    5858  /* evaluate operations, free stack on error */
     59  Ncstack = Nstack;
    5960  if (!evaluate_stack (stack, &Nstack)) {
    6061    if (*size == 1) DeleteVector (vec);
     
    6566  switch (*size) {
    6667    case 0:
    67       sprintf (outname, "%.12g", stack[0].Float);
     68      if (Ncstack == 1) {
     69          /* use exact input work */
     70          sprintf (outname, "%s", stack[0].name);
     71      } else {
     72          sprintf (outname, "%.12g", stack[0].Float);
     73      }
    6874      break;
    6975
Note: See TracChangeset for help on using the changeset viewer.