IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3414


Ignore:
Timestamp:
Mar 13, 2005, 4:24:23 PM (21 years ago)
Author:
eugene
Message:

pushing scalar precision to 12 digits

Location:
trunk/Ohana/src/opihi/lib.shell
Files:
4 edited

Legend:

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

    r2843 r3414  
    33int check_stack (StackVar *stack, int Nstack, int validsize) {
    44
     5  double tmp;
    56  int i, Nx, Ny, Nv, size;
    67  char *c;
  • trunk/Ohana/src/opihi/lib.shell/convert_to_RPN.c

    r3029 r3414  
    11# include "opihi.h"
    2 /* # define DUMPSTACK * for tests */
     2# define DUMPSTACK 0
    33
    44StackVar *convert_to_RPN (int argc, char **argv, int *nstack) {
     
    176176  free (argv);
    177177
    178 #ifdef DUMPSTACK
     178# if (DUMPSTACK)
    179179  for (i = 0; i < Nstack; i++) {
    180180    fprintf (stderr, "%s ", stack[i].name);
     
    185185  }
    186186  if (Nstack > 0) fprintf (stderr, "\n");
    187 #endif
     187# endif
    188188
    189189  return (stack);
  • trunk/Ohana/src/opihi/lib.shell/dvomath.c

    r2801 r3414  
    6363  switch (*size) {
    6464    case 0:
    65       sprintf (outname, "%g", stack[0].Float);
     65      sprintf (outname, "%.12g", stack[0].Float);
    6666      break;
    6767
  • trunk/Ohana/src/opihi/lib.shell/variable.c

    r3142 r3414  
    8383  char value[1024];
    8484
    85   sprintf (value, "%.9g", dvalue);
     85  sprintf (value, "%.12g", dvalue);
    8686  set_str_variable (name, value);
    8787  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.