alpha: Clean up conversion of float values Don't use "real" conversion to double, lest we raise exceptions when passing signalling nans.