Returns a hash code value for this ScaleAndPrecision based on its scale and precision.
Hash code value for this ScaleAndPrecision.