QGIS 3.2 allows evaluation of simple expressions (well, actually ANY QGIS expression... so you could use aggregates and the like if you really wanted!) by entering "= " followed by an expression into the locator bar. If a valid expression is entered, users are given an option to copy the result to the clipboard.
E.g. entering "= 10/3" shows a locator entry "Copy '3.3333333' to clipboard".