IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6191 for trunk/psLib/src/types


Ignore:
Timestamp:
Jan 25, 2006, 12:33:41 PM (21 years ago)
Author:
drobbin
Message:

changed float output to show only 7 sig digits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadataConfig.c

    r6190 r6191  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-01-25 22:18:00 $
     12*  @version $Revision: 1.52 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-01-25 22:33:41 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14821482        if (item == NULL) {
    14831483            // XXX : this is probably not the right error value
    1484             psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMetadata_METATYPE_INVALID, PS_DATA_UNKNOWN);
     1484            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     1485                    PS_ERRORTEXT_psMetadata_METATYPE_INVALID, PS_DATA_UNKNOWN);
    14851486            psFree(iter);
    14861487            return NULL;
     
    15111512        case PS_DATA_F32:
    15121513            psStringAppend(&content, "%s F32  ", item->name);
    1513             psStringAppend(&content, "%.15g ", item->data.F32);
     1514            psStringAppend(&content, "%.7g ", item->data.F32);
    15141515            if ( strncmp(item->comment,"",2) ) {
    15151516                psStringAppend(&content, " #%s", item->comment);
     
    15951596                psStringAppend(&content, "F32 ", MAXSTR);
    15961597                for (int i = 0; i < vector->n; i++) {
    1597                     psStringAppend(&content, "%.15g ", vector->data.F32[i]);
     1598                    psStringAppend(&content, "%.7g ", vector->data.F32[i]);
    15981599                }
    15991600                break;
Note: See TracChangeset for help on using the changeset viewer.