This should be really trivial but all the methods I came up with are convoluted and waste operations (divide, take floor, scale up). Basically, I have random integers and I want to get the nearest 1000 multiple below it.
For example, if I have 6432, I really want 6000, or if I have 888 I want 0.
What the simplest expression that does this?
How about doing something like this:
It will give you an answer of 1 for 1503 / 1000, and then multiply it by 1000.