Let $$N(t) \equiv N_0 \exp{(-\kappa (t-t_0))} \tag{1}$$
denote the population of a sample at time $t$, where $\kappa >0$ and $N_0 \equiv N(t_0) >0$. The number of decayed particles at time $t$ is then given by $N_\mathrm{D} (t) \equiv N_0 - N(t).$
Taking the derivative of $N(t)$ shows that
$$ \frac{\mathrm{d}N(t)}{\mathrm{d}t} = -\kappa\, N(t) $$ and thus
$$ \kappa = \frac{\mathrm{d} N_{\mathrm{D}}(t)}{\mathrm{d}t} /N(t) \quad . \tag{2}$$
We can see that $\kappa$ is the decay rate (activity) relative to the existent population $N(t)$.
Note that this is basically the definition given in your book. Since by definition $\kappa$ is constant, the right-hand side cannot depend on $t$ and we are free to evaluate it at $t=t_0$.
Then for a very small time interval $\Delta t\equiv t-t_0$ with $ 0 <\Delta t \ll 1$, we can approximate the above relation as follows:
$$ \kappa \approx \frac{1}{\Delta t} \frac{\Delta N_\mathrm{D}}{N(t_0)} \overset{(1)}{=} \frac{1}{\Delta t} \frac{\Delta N_\mathrm{D}}{N_0} , \tag{3} $$
where $\Delta N_{\mathrm{D}} \equiv N_{\mathrm{D}}(t_0+\Delta t) - N_{\mathrm{D}}(t_0)$ is the number of particles which decayed in $\Delta t$.
You have used equation $(3)$ in your calculations, which is a suitable approximation only for $t \approx t_0$. If you repeat your calculations with even smaller $\Delta t$, e.g. $\Delta t= 0.001\, \mathrm{s}$, then you will see that the approximation gets better and better. This is due to the fact that in the limit $\Delta t\rightarrow 0$ equation $(3)$ becomes exact.
From another perspective, note that for small $\Delta t$ it holds that
$$e^{-\kappa \Delta t } \approx 1- \kappa\, \Delta t + \mathcal O (\Delta t^2) \quad . \tag{4}$$
As an exercise, you can use the above relation in equation $(1)$ (neglecting the quadratic and higher orders) to show that this indeed yields the (approximated) decay constant given in equation $(3)$ and vice versa: That is, if equation $(3)$ is a suitable approximation, then relation $(4)$ is too.