diff --git a/HopsanGUI/HcomHandler.cpp b/HopsanGUI/HcomHandler.cpp index 0ab250ff2..27125e838 100644 --- a/HopsanGUI/HcomHandler.cpp +++ b/HopsanGUI/HcomHandler.cpp @@ -6245,6 +6245,7 @@ void HcomHandler::evaluateExpression(QString expr, VariableType desiredType) funcMap.insert("acos", static_cast(acos)); funcMap.insert("atan", static_cast(atan)); funcMap.insert("log", static_cast(log)); + funcMap.insert("log2", static_cast(log2)); funcMap.insert("exp", static_cast(exp)); funcMap.insert("sqrt", static_cast(sqrt)); funcMap.insert("round", static_cast(round));