Trying to stop a float at a certain value.

I have a script that decreases a float using the operator -= and I need it to stop at 0.

`

	if(Input.GetKey(KeyCode.LeftShift) && acceleration <= 20 && sprintDuration >= 1)

	{
		acceleration = acceleration + sprintSpeed * Time.deltaTime;
		sprintDuration -= 2 * Time.deltaTime;
	}

	else if(acceleration >= 15)
	{
		acceleration -= sprintSpeed * Time.deltaTime;
	}

`

Just check to see when it is <= 0, then set it to 0 and stop.

May i know which variable u are talking about.
and if you want to stop on 0, then following line of code will work.

if(yourVar>0)

{

  acceleration -= sprintSpeed * Time.deltaTime;

}

in the above case instead of yourVar use acceleration.