What is a hyphen used for on a computer? With computers, the hyphen key is commonly used in programming and mathematics to subtract one number from another. The following sections contain examples of how a hyphen is used.

Understanding the Context

Hyphen in a math equation In a math equation, a hyphen represents a subtraction (minus).