log10(1000) will never change, and is exactly 3, so there's no reason not to use it
In reply to Re^6: Portability of floor(log(N)) by pryrt in thread Portability of floor(log(N)) by toolic