Numerical Characteristics of the Machine
.Machine is a variable holding information on the numerical characteristics of the machine R is running on, such as the largest double or integer and the machine's precision.
.Machine is a variable holding information on the numerical characteristics of the machine R is running on, such as the largest double or integer and the machine's precision.
00 Remarks
The algorithm is based on Cody's (1988) subroutine MACHAR. As all current implementations of R use 32-bit integers and use IEC 60559 floating-point (double precision) arithmetic, the "integer" and "double" related values are the same for almost all R builds.
Note that On most platforms smaller positive values than .Machine$Double.xmin can occur. On a typical R platform the smallest positive Double Is about 5E-324.
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| toList | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| double_eps | 1 | the smallest positive floating-point number x such that 1 + x != 1. |
| double_neg_eps | 1 | a small positive floating-point number x such that 1 - x != 1. |
| integer_max | 1 | the largest integer which can be represented. |
| double_xmin | 1 | |
| double_xmax | 1 | |
| uinteger_max | 1 |
04 Members
the smallest positive floating-point number x such that 1 + x != 1. It equals double.base ^ ulp.digits if either double.base is 2 or double.rounding is 0; otherwise, it is (double.base ^ double.ulp.digits) / 2. Normally 2.220446e-16.
a small positive floating-point number x such that 1 - x != 1. It equals double.base ^ double.neg.ulp.digits if double.base is 2 or double.rounding is 0; otherwise, it is (double.base ^ double.neg.ulp.digits) / 2. Normally 1.110223e-16. As double.neg.ulp.digits is bounded below by -(double.digits + 3), double.neg.eps may not be the smallest number that can alter 1 by subtraction.
the largest integer which can be represented. Always 2^{31} - 1 = 21474836472