Skip to content
Prev 51360 / 63424 Next

integer

Adrian,

Yes, any "whole" number coming out of a computation bitten by floating
point issues, I think.
[1] 1
[1] 1
+     function(x, tol = .Machine$double.eps^0.5)  abs(x - round(x)) < tol
[1] TRUE

Best,
~G

P.S Credit to Hadley Wickham for recently pointing out on twitter that 49
is the first number like this. I would have had to have gone searching for
one otherwise.
On Thu, Dec 17, 2015 at 7:02 AM, Adrian Du?a <dusa.adrian at unibuc.ro> wrote: