Sub topic 4
Quick answers: math, conversions, and definitions
Spotlight can answer many small questions without opening another app. You type a calculation, a unit conversion, or a word, and the answer appears in the results list. This chapter covers what Spotlight can answer, how to phrase questions so it recognizes them, and what to do when it doesn't.
This chapter assumes you can already open Spotlight with Command-Space and read its results list, as covered in the previous chapters. It also assumes basic familiarity with Finder and keyboard shortcuts.
How quick answers work
Spotlight inspects what you type before it searches for files. If the text looks like a calculation, a unit conversion, a currency amount, or a dictionary word, Spotlight shows an answer at the top of the results. This answer is computed or looked up on demand. It is not a file in the index.
Two consequences follow:
- Quick answers work even when indexing is off or broken, because they do not depend on the file index. Some kinds, such as currency and weather, need an internet connection.
- You can copy the answer. Select the answer row and press Command-C to copy the result, or press Return on some answers to open the full result in Calculator, Dictionary, or another app.
Calculations
Type an arithmetic expression and the result appears as you type. You don't press Return.
18% of 240
12 * 7
(1250 + 380) / 4
2^10These examples give 43.2, 84, 407.5, and 1024. The first uses a percentage, the second multiplication, the third parentheses to control the order of operations, and the fourth an exponent.
A few points help avoid wrong answers:
- Use
*for multiplication and/for division. The letterxis sometimes accepted, but*is the reliable choice. - Parentheses work as in ordinary math. Without them, multiplication and division happen before addition and subtraction.
1250 + 380 / 4is 1345, not 407.5. - Spotlight handles common functions such as square roots (
sqrt(144)) and powers. If a more advanced expression is not recognized, Spotlight treats it as plain text and searches for files instead. That behavior tells you the expression was not understood. - Decimal and thousands separators follow your region setting. In a region that uses a comma as the decimal mark, typing
3.5may not be read as you expect.
Unit conversions
Type a quantity with a unit and the target unit, using "in" or "to" between them.
12 km in miles
72 fahrenheit in celsius
3 cups in ml
5 kg to poundsSpotlight supports common length, weight, volume, temperature, area, speed, and time units. It also accepts a bare quantity, such as 12 km, and may show several equivalent units at once.
Currency works the same way, for example 100 usd in eur. Exchange rates come from the internet and change over time, so the figure is an approximation of the current rate. For a financial decision, check the rate with your bank or another source.
Common problems with conversions:
| Problem | Likely cause | Fix |
|---|---|---|
| Only file results appear | Unit name not recognized | Use the full name, such as `kilometers` instead of an abbreviation |
| Wrong volume | US and UK units differ (gallon, pint) | Check the answer against the unit you meant, and use metric units where possible |
| Currency answer missing | No internet connection | Reconnect and retry |
| Number looks off | Region uses a different decimal mark | Type the number the way your region writes it |
Definitions
Type a word and Spotlight shows a definition from the built-in Dictionary app. Select the definition row to see a preview, and press Return to open the entry in Dictionary.
ephemeral
ubiquitousDictionary also contains a thesaurus and other reference sources. Which sources are available depends on your macOS version and on which dictionaries are enabled in the Dictionary app's settings. If a word has no definition in the enabled dictionaries, you see file and web suggestions only.
Definitions come from local data, so they work without an internet connection. Because a word may also appear in file names or document text, the file results still appear below the definition. Scroll down or use the result categories you chose in Spotlight settings if you want to focus on one type.
Other quick answers
Depending on your macOS version, region, and settings, Spotlight can also show:
- Weather for a city, for example
weather London. - Stock prices and sports scores.
- Time in another city, for example
time in Tokyo. - Web suggestions from Siri Suggestions, and Maps results for places.
Whether these appear is controlled by the result categories in Spotlight settings. If a quick answer type never shows up, check that its category is turned on. Settings are covered in the chapter on choosing what Spotlight shows.
Tips for reliable answers
- Type the full question in one line. Spotlight reads the whole text, so extra words can stop recognition.
convert 12 km to milesmay fail where12 km in milessucceeds. - Look at the top of the results list. The quick answer appears above files and apps.
- Copy the result with Command-C when the answer row is selected, then paste it where you need it.
- Don't use quick answers for work where precision matters. Rounding and rates may differ from what you need.
- If the answer does not appear, try an alternate phrasing before assuming Spotlight cannot do it.
Putting it together
A typical use: you are writing a recipe and need to scale it. Open Spotlight and type 3 cups in ml. Read the answer, press Command-C to copy it, and press Escape to close Spotlight. Then type (450 * 1.5) to check a scaled quantity. You never leave your document for more than a few seconds.
Exercise
You type 1250 + 380 / 4 into Spotlight and get 1345, but you wanted to add 1250 and 380 first and then divide by 4. How do you fix the expression, and what answer should you expect?
Show answer
Add parentheses: (1250 + 380) / 4. Without them, division happens before addition. The correct answer is 407.5.
Exercise
You type convert 12 km to miles and Spotlight shows only files. What is a likely reason, and what phrasing should you try?
Show answer
Spotlight did not recognize the extra word "convert" as part of a conversion, so it treated the text as a plain search. Try 12 km in miles.
Exercise
Spotlight is not finding any files because the index is broken. Can you still use it for 18% of 240? Why?
Show answer
Yes. Calculations are computed on demand and do not use the file index, so the answer of 43.2 still appears.