make scaleDoubleToQuantum pure and nothrow.