Skip to content

Numerical error in R (win32) (PR#8909)

1 message · Peter Dalgaard

#
"ltp" <teck.lim at imperial.ac.uk> writes:
It isn't, and adding zeros doesn't change anything. The issue is that
3.15 has a nonterminating binary expansion, just like 1/7 has a
nonterminating decimal one. Please do read the references that have
already been provided to you.
 
3.15 (dec) == 11.0010011001100110011... (bin)
3.75 (dec) == 11.11 (bin)