Upcast data to float when clipping

Cast data to float to prevent wrapping for unsigned data when
subtracting clip values.