CHARACTERS DIFFERENCE AND SIMILARITY
SEMUA SAMA
SEMUA TAK SAMA
DIFFERENT OF ARRANGEMENTS | SAME OF ARRANGEMENTS
A set containing digits only (0–9) is called Numeric or Digits-Only (and in computing/data entry contexts, Numeral or Digit-based).
Character Set Comparison
| Character Set Name | Allowed Characters | Examples | Typical Applications |
|---|---|---|---|
| Numeric / Digits-Only | 0–9 | 123456, 90210 | PINs, ZIP codes, phone numbers, phone OTPs |
| Alphabetic | A–Z, a–z | John, Jakarta | First/last name fields, dictionary terms |
| Alphanumeric | A–Z, a–z, 0–9 | Pass2026, BK1234AB | License plates, serial numbers, password rules |
Key Terminology Details
1. Numeric
- Scope: Standard Arabic numerals (
0, 1, 2, 3, 4, 5, 6, 7, 8, 9). - Validation: Rejects all letters, spaces, and special symbols.
- Standard Regex:
^[0-9]+$or^\d+$ - Common Use Cases:
- Authentication: 4-digit or 6-digit PIN codes, OTP (One-Time Password) SMS codes.
- Identification: Social security numbers, national identity numbers, bank account numbers.
- Data Entry Controls: Phone number fields, postal codes, credit card numbers.
2. Numeric vs. Integer/Decimal
- Numeric String: A sequence of digit characters processed as text (e.g.,
"00123"retains its leading zeros). - Mathematical Number (Integer/Float): Value representation that allows operational math (e.g.,
123), decimal points (.), or sign symbols (+,-).
Comments
Post a Comment