IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 3:31:01 PM (18 years ago)
Author:
eugene
Message:

big update from eam_branch_20081124 with updates to Opihi math

File:
1 edited

Legend:

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

    r17247 r20936  
    126126        }
    127127        if (I < 0) I += vec[0].Nelements;
    128         f1 = vec[0].elements[I];
     128        f1 = (vec[0].type == OPIHI_FLT) ? vec[0].elements.Flt[I] : vec[0].elements.Int[I];
    129129      }
    130130    }
     
    132132    free (tmpline);
    133133    if ((int)f1 == f1)
    134       snprintf (strValue, 128, "%.0f", f1);
     134      snprintf (strValue, 128, "%.0f", f1); 
    135135    else
    136       snprintf (strValue, 128, "%.9g", f1);
     136      snprintf (strValue, 128, "%.12g", f1);
    137137
    138138    /* interpolate vector element into newline (being accumulated) */
Note: See TracChangeset for help on using the changeset viewer.