"Digit" (Interpreter Type)
Digit in a standard format.
Details
- "Digit" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Digit" does not require connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["Digit",{{choices1,…}}] one among choices Restricted["Digit",max] a digit below max Restricted["Digit",{min,max}] a digit between min and max Restricted["Digit",{min,max,s}] a digit between min and max, with step s
Examples
Basic Examples (4)
Interpreter["Digit"]["4"]Interpreter[Restricted["Digit", 5]]["1"]Interpreter[Restricted["Digit", {0, 9, 2}]]["3"]Interpret sequences of 3 digits:
Interpreter[Restricted[DelimitedSequence["Digit", ""], 3]]["527"]See Also
Interpreter Restricted Failure
Interpreter Types: Integer Number PhoneNumber CreditCardNumber SemanticInteger ComputedInteger SemanticNumber ComputedNumber
Related Guides
History
Introduced in 2016 (10.4)