Function function_to_fp_nothrow (o2scl)¶
-
template<class fp_t = double>
int o2scl::function_to_fp_nothrow(std::string s, fp_t &result, convert_units<fp_t> &cu, int verbose = 0, rng<> *r = 0)¶ Convert a formula to a floating point number and return an integer to indicate success or failure.
This is an alternate version of function_to_fp() which does not call the error handler and returns a non-zero integer when it fails.