Precision
How many significant decimal digits a number carries.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Precision!Precision(expr) for an exact number, MachinePrecision for a machine number, otherwise its significant decimal digit count.Typed signatures
| Type | Package | Applies |
|---|---|---|
(any) -> integer<1..> | real | signed_infinity | combinatorics | always |
Details
- Exact numbers (integers, rationals, radicals, symbolic constants like ) carry infinite precision, Wolfram's own convention.
- A literal of up to 17 digits (what a double holds) is a machine number: its precision is the symbol
MachinePrecision, as in Wolfram. - A literal with more digits counts the digits actually written; Wolfram's count is not an integer (
20.497for 21 digits).
Examples
2 more kept as data, checked against the oraclesScope #
About
| Examples | 8 |
|---|---|
| Checked against | Wolfram Language 7 agree1 differ |
| Crosswalk | Wolfram Language |
See also: IsMachineNumber, IsNumeric