doing math by converting to integers