PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Numerical Evaluation & Precision
>
Precision & Accuracy Control
>
$MachinePrecision
>
BUILT-IN MATHEMATICA SYMBOL
Numerical Precision
Machine-Precision Numbers
Tutorials »
|
MachinePrecision
$MachineEpsilon
$MinMachineNumber
$MaxMachineNumber
See Also »
|
Precision & Accuracy Control
Representation of Numbers
System Information
More About »
$MachinePrecision
$MachinePrecision
gives the number of decimal digits of precision used for machine-precision numbers.
MORE INFORMATION
A typical value of
$MachinePrecision
is
53
Log
[10, 2]
or approximately 16.
$MachinePrecision
is the numerical value of
MachinePrecision
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Hardware machine precision used for floating point computation:
Hardware machine precision used for floating point computation:
In[1]:=
Out[1]=
Scope
(1)
Machine number approximating
:
Arbitrary precision number approximating
with the same precision as machine numbers:
Applications
(1)
Make sure computations are carried out with the same precision as machine numbers:
Without fixing the precision, the resulting precision may be lower:
Properties & Relations
(3)
$MachinePrecision
evaluates to a number while
MachinePrecision
is a numerical constant:
$MachinePrecision
is numerically
Equal
to
MachinePrecision
:
$MachinePrecision
is the machine precision approximation to
MachinePrecision
:
Numbers with just a few digits entered are assumed to have machine precision:
Precision is based on the number of digits when more than
are entered:
$MachinePrecision
times the number of bits per digit gives the binary machine precision:
Possible Issues
(1)
$MachinePrecision
uses arbitrary precision computations with machine precision resolution:
MachinePrecision
uses machine number computations:
SEE ALSO
MachinePrecision
$MachineEpsilon
$MinMachineNumber
$MaxMachineNumber
TUTORIALS
Numerical Precision
Machine-Precision Numbers
MORE ABOUT
Precision & Accuracy Control
Representation of Numbers
System Information
New in 2 | Last modified in 5