Handle doubles in value transformation