Operate on integers instead of doubles