Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNumParser Class Reference

#include <KisNumParser.h>

+ Inheritance diagram for KisNumParser:

Static Public Member Functions

static Q_INVOKABLE double parseSimpleMathExpr (QString const &expr)
 parse an expression to a double.
 

Detailed Description

Definition at line 17 of file KisNumParser.h.

Member Function Documentation

◆ parseSimpleMathExpr()

double KisNumParser::parseSimpleMathExpr ( QString const & expr)
static

parse an expression to a double.

Definition at line 8 of file KisNumParser.cpp.

9{
10 bool ok = false;
11 const double ret = KisNumericParser::parseSimpleMathExpr(expr, &ok);
12 if (!ok) {
13 return qQNaN();
14 }
15 return ret;
16}
double parseSimpleMathExpr(const QString &expr, bool *noProblem)
parse an expression to a double.

References KisNumericParser::parseSimpleMathExpr().


The documentation for this class was generated from the following files: