How to smooth 2 Float values?

This is for rotating the camera around the character on mobile.
When the touch moves quickly, it’s fine, but when moving the touch slowly, for example to aim at something, it gets a little jittery and when you release your finger from the screen it also moves a little bit. I wanted to make the rotation smoother and maintain precision.
Changing the variable ‘Speed’ it doesn’t change anything, it just affects the speed.