Hi,
does anybody know if the following behavior of julian() is intentional?
> julian(2, 1, 2012) - julian(2 - 1e-15, 1, 2012)
[1] 1
> julian(2, 1, 2012) - julian(2, 1 - 1e-15, 2012)
[1] 0
> julian(2, 1, 2012) - julian(2, 1, 2012 - 1e-15)
[1] 0
In other words, julian() is subject to numerical noise in the 'day'
argument, but not in the 'month' and 'year' argument? Another example:
> julian(2 - 1e-15, 1, 2012) - julian(1 - 1e-15, 1, 2012)
[1] 30
Thanks,
Andreas
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.