Evaluate the text as a mathematical expression.
Updated 9 Sep 2022 to use the decimal separator defined in System Preferences.
This is an extension for PopClip.
Interested in seeing how this works? View the source files for this extension on GitHub.