in reply to Re^5: Portability of floor(log(N))
in thread Portability of floor(log(N))

log10(1000) will never change, and is exactly 3, so there's no reason not to use it