Logo Search packages:      
Sourcecode: csound version File versions

double csound::Conversions::stringToDouble ( std::string  value,
double  default_ = 0.0 
) [static]

Translate the string value to a double-precision value, returning the default if the string value is empty.

Definition at line 432 of file Conversions.cpp.

    if (value.empty()) {
      return default_;
    return atof(value.c_str());

Generated by  Doxygen 1.6.0   Back to index