Scaling for different data types