scaleToMax int to float