10.5: Spotlight calculator supports math(3) functions

Nov 06, '07 12:30:03PM

Contributed by: aar

It's well-known that Spotlight now sports an integrated calculator. But I haven't seen anyone yet mention that it supports all of the standard C math(3) functions. For example, type sqrt(9), and you'll get an answer of 3. Type pow(2,2), and you'll get 4. You can type man math in Terminal to get a list of available math functions.

[robg adds: The Spotlight calculator also supports pi as a constant (and there may be others, but that's the only one I'm aware of).]

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20071028044812217