MATLAB: Is there a way to floor to a specified number of digits

rounding

I want to floor a series of numbers, but I want to do it to a specified number of digits (for example, I want to round both 12351231 and 12752309 to 12000000). Neither round nor floor work for this purpose.
Is there a function I'm not aware of, or a simple combination of functions that can do this operation? I'm only working with integers, so decimal compatibility is unnecessary, if that matters.

Best Answer

Download my FEX submission, which contains many useful rounding functions:
Then you can simply do this:
>> round2sf([12351231,12752309],2,@floor)
ans =
12000000 12000000