SymbolFYI

Digit Two vs Hyphen-Minus

2
Digit Two
0032
View details →
-
Hyphen-Minus
002D
View details →
VS

Property Comparison

Property 2 0032 - 002D
Name Digit Two Hyphen-Minus
Category Latin Extended Latin Extended
Block Basic Latin Basic Latin
Script Zyyy Zyyy
General Category Decimal Number (Nd) Dash Punctuation (Pd)
Bidirectional EN ES

Encoding Comparison

Format 0032 002D
Unicode U+0032 U+002D
HTML Decimal 2 -
HTML Hex 2 -
CSS \0032 \002D
JavaScript \u{32} \u{2D}
Python \u0032 \u002d
UTF-8 32 2d

How to Distinguish

Both Digit Two and Hyphen-Minus belong to the Latin Extended category and the Basic Latin block. Compare their codepoints and visual rendering to distinguish them.

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

Related Comparisons

2 Digit Two details - Hyphen-Minus details All Comparisons