I want to check if a series of numbers multiplying a number n are integers. However, when I use the seq function to develop this series and multiply n, then checking if it is a integer sequence, I will find something wrong, such as the following example. Please help me to figure out this question!
x <- seq(from=0.001, to=0.015, by=0.001)
x
[1] 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.010 0.011 0.012 0.013 0.014 0.015
n <- 1000
a = x[9]*n
a
[1] 9
a == 9
[1] FALSE