2011-09-21 45 views

Trả lời

17

help(numeric) gửi cho bạn để help(double) trong đó có

giá trị đúp chính xác:

All R platforms are required to work with values conforming tothe 
IEC 60559 (also known as IEEE 754) standard. This basically works 
with a precision of 53 bits, and represents to that precision a 
range of absolute values from about 2e-308 to 2e+308. It also has 
special values ‘NaN’ (many of them), plus and minus infinity and 
plus and minus zero (although R acts as if these are the same). 
There are also _denormal(ized)_ (or _subnormal_) numbers with 
absolute values above or below the range given above but 
represented to less precision. 

See ‘.Machine’ for precise information on these limits. Note that 
ultimately how double precision numbers are handled is down to the 
CPU/FPU and compiler. 

Vì vậy, bạn muốn nhìn vào .Machine mà trên hộp 64-bit của tôi có

$double.xmin 
[1] 2.22507e-308 

$double.xmax 
[1] 1.79769e+308 
+0

được nhiều người đánh giá cao! .Machine là người mới đối với tôi ... những điều tốt đẹp để biết! – SFun28

+0

Tôi sẽ rất ngạc nhiên nếu những giá trị này khác nhau trên bất kỳ hệ điều hành chính thống nào ... bit-ness của hệ điều hành không ảnh hưởng đến việc số lượng được lưu trữ dưới dạng float chính xác kép ... –

Các vấn đề liên quan