Krita Source Code Documentation
Loading...
Searching...
No Matches
KisNumParser.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Deif Lou <ginoba@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#include "KisNumParser.h"
7
8double KisNumParser::parseSimpleMathExpr(QString const &expr)
9{
10 bool ok = false;
11 const double ret = KisNumericParser::parseSimpleMathExpr(expr, &ok);
12 if (!ok) {
13 return qQNaN();
14 }
15 return ret;
16}
static Q_INVOKABLE double parseSimpleMathExpr(QString const &expr)
parse an expression to a double.
double parseSimpleMathExpr(const QString &expr, bool *noProblem)
parse an expression to a double.