HYPHEN-MINUS vs MINUS SIGN

-
HYPHEN-MINUS
U+002D
View details →
MINUS SIGN
U+2212
View details →
VS

Property Comparison

Property - U+002D − U+2212
Name HYPHEN-MINUS MINUS SIGN
Block Basic Latin Mathematical Operators
Script Zyyy Zyyy
Category Dash Punctuation (Pd) Math Symbol (Sm)
Bidirectional ES ES

Encoding Comparison

Format U+002D U+2212
unicode U+002D U+2212
decimal 45 8722
htmldecimal - −
htmlhex - −
css \002D \2212
javascript \u{2D} \u{2212}
python \u002d \u2212
java \u002D \u2212
go \u002D \u2212
ruby \u{2D} \u{2212}
rust \u{2D} \u{2212}
ccpp \u002d \u2212
urlencoded - %E2%88%92
utf8bytes 2d e2 88 92
utf16bebytes 00 2d 22 12
utf32bebytes 00 00 00 2d 00 00 22 12

How to Distinguish

Both characters use the Zyyy script but are in different blocks: HYPHEN-MINUS in Basic Latin and MINUS SIGN in Mathematical Operators.

Tip: Paste the character into a hex editor or use charCodeAt() in JavaScript to check the actual codepoint.

Related Comparisons

- HYPHEN-MINUS details − MINUS SIGN details All Comparisons