Changeset b208550 in observatorio
- Timestamp:
- Dec 8, 2014, 10:04:10 AM (9 years ago)
- Branches:
- simulacion
- Children:
- 8171889
- Parents:
- 8eb9820
- Location:
- simulacion/ModuloDinamico
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
simulacion/ModuloDinamico/utils.H
ra3eef50 rb208550 30 30 # include <sstream> 31 31 32 # define MAX_PRECISION 1E10 33 32 34 template <typename T> 33 35 std::string num_to_str(const T & number) 34 36 { 35 37 std::stringstream sstr; 38 39 if (number < MAX_PRECISION) 40 sstr.precision(15); 41 36 42 sstr << number; 37 43 return sstr.str();
Note: See TracChangeset
for help on using the changeset viewer.