Changeset 763
- Timestamp:
- 03/28/18 02:28:11 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fn/conv_fn.cpp
r757 r763 8 8 GenoConv_fn0::GenoConv_fn0() 9 9 { 10 name = "Vector of real values, no phenotype"; //for numerical optimization; custom fitness function must be provided in script 10 name = "Vector of real values, no phenotype"; //for numerical optimization; custom fitness function must be provided in script. See oper_fn.cpp for more details. 11 11 in_format = 'n'; 12 12 out_format = '0'; … … 76 76 if (i > 0) 77 77 out += ", "; 78 snprintf(buffer, sizeof(buffer), "% g", vec[i]);79 out += buffer; //+= std::to_string(1.23) not available in embarcadero 10.278 snprintf(buffer, sizeof(buffer), "%.8g", vec[i]); 79 out += buffer; //+= std::to_string(1.23) still not available in embarcadero 10.2.3 80 80 } 81 81 return out + "]";
Note: See TracChangeset
for help on using the changeset viewer.