Changeset b208550 in observatorio


Ignore:
Timestamp:
Dec 8, 2014, 10:04:10 AM (9 years ago)
Author:
Alejandro <amujica@…>
Branches:
simulacion
Children:
8171889
Parents:
8eb9820
Message:

agregada precision numerica para la escritura de los xml

Location:
simulacion/ModuloDinamico
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • simulacion/ModuloDinamico/utils.H

    ra3eef50 rb208550  
    3030# include <sstream>
    3131
     32# define MAX_PRECISION 1E10
     33
    3234template <typename T>
    3335std::string num_to_str(const T & number)
    3436{
    3537  std::stringstream sstr;
     38
     39  if (number < MAX_PRECISION)
     40    sstr.precision(15);
     41
    3642  sstr << number;
    3743  return sstr.str();
Note: See TracChangeset for help on using the changeset viewer.