scale to integer