You can use PayPal to donate. Doing so will encourage updates of this software.
Thank you.
by Matt Sephton
“The Services menu in Mac OS X lets you use features of one application while working in another. In Snow Leopard, services are more simplified, streamlined, and helpful. The Services menu is contextual, so it shows just the services appropriate for the application you’re using or content you’re viewing rather than all available services. You can access services with a right click of your mouse or Control-click of your trackpad. You can configure the menu to show only the services you want, and you can even create your own services using Automator.” —Apple
These use the bc command to calculate the mathematical result of expressions within the selected text in any application.
Example expressions: 2+2 1/2 1024/16 (1/3 + 10 - 10) * 3 2 ^ 64 scale=5;pi=4*a(1);pi x=3;y=4;z=sqrt(x^2+y^2);z
Put the Service at ~/Library/Services/ (current user only) or /Library/Services/ (for all users).
Optionally, assign a shortcut key through System Preferences.
Double click a Service to edit it using Automator.
02 October: Added Delete Resource Fork (1.00)
29 August: Updated Calculate & Append (1.01), Calculate & Replace (1.01), Calculate & Speak (1.04) to remove trailing zeros. Calculate & Speak now speaks more English (1.05)
28 August: Introduced Calculate & Append (1.00), Calculate & Replace (1.00), Calculate & Speak (1.03)
2009
Mac OS X Automation by Apple’s Sal Soghoian
How to create a Service to sort paragraphs of text
man bc the calculator used by the services
http://osx.iusethis.com/app/calculateservices