"SemanticReal" (Interpreter Type)
Natural-language name of a real number.
Details
- "SemanticReal" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "SemanticReal" requires connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["SemanticReal",{{choices1,…}}] one among choices Restricted["SemanticReal",max] a real below max Restricted["SemanticReal",{min,max}] a real between min and max Restricted["SemanticReal",{min,max,s}] a real between min and max, with step s Restricted["SemanticReal", Automatic, n] a real with n-digit precision
Interpretation
- "SemanticReal" yields a Real.
Examples
Basic Examples (3)
Interpret real numbers in natural language:
Restrict to multiples of 1/2 between 1 and 4:
Otherwise, $MachinePrecision is implied:
When the number contains a Precision or Accuracy, and a precision restriction is also specified, the lower of the two will be applied: