Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
365 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2024 Deif Lou <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#include "KisNumParser.h"

double KisNumParser::parseSimpleMathExpr(QString const &expr)
{
    bool ok = false;
    const double ret = KisNumericParser::parseSimpleMathExpr(expr, &ok);
    if (!ok) {
        return qQNaN();
    }
    return ret;
}