DATRW++ library: seismic data I/O with multiple formats

◆ ntrailingdigits()

int datrw::util::ntrailingdigits ( double  v,
const bool &  debug 
)

return number of trailing digits (after decimal point)

Examples:
writetest.cc.

Definition at line 97 of file util.cc.

References nsignificantdigits().

Referenced by datrw::seife::ParameterLine::line(), main(), and datrw::su::ScalCoo::set().

98  {
99  int retval=nsignificantdigits(v, debug)-floor(log10(v))-1;
100  return(retval);
101  } // int ntrailingdigits(double v, const bool& debug=false)
int nsignificantdigits(double v, const bool &debug)
return number of significant digits
Definition: util.cc:49
Here is the call graph for this function:
Here is the caller graph for this function: