I can't make this variable a decimal

I have a code that changes a variable called ‘xOffset’ in a code I have called ‘MouseOrbitOTS’ from one number to another when an input is pressed. Here’s my script…

var left : int = 1; //determines amount of zoom capable. Larger number means further zoomed in
var right : int = -1; //determines the default view of the camera when not zoomed in
var smooth : float = 5; //smooth determines speed of transition between zoomed in and default state
var orbitOTS : MouseOrbitOTS;
orbitOTS = gameObject.GetComponent( MouseOrbitOTS );

private var zoomedIn = false; //boolean that determines whether we are in zoomed in state or not
function Update () {
if(Input.GetButtonDown("Switch Shoulders")){        //This function toggles zoom capabilities with the Z key. If it's zoomed in, it will zoom out
zoomedIn = !zoomedIn;
}
if(zoomedIn == true){    //If "zoomedIn" is true, then it will not zoom in, but if it's false (not zoomed in) then it will zoom in.
orbitOTS.xOffset = Mathf.Lerp(orbitOTS.xOffset,left,Time.deltaTime*smooth);
}
else{
orbitOTS.xOffset = Mathf.Lerp(orbitOTS.xOffset,right,Time.deltaTime*smooth);
    }
}

But for some reason, I can’t make the variables left and right decimals. I want to make them 0.75 and -0.75, but it won’t let me. Why can’t I do this?

You have defined them as integers - integers are by definition not floating point numbers. Try “float” instead.