i keep being told i need to "fix all compiler errors before you can enter play mode"

i keep being told i need to “fix all compiler errors before you can enter play mode”

Assets/code/paddle.cs(11,75): error CS1503: Argument #1' cannot convert double’ expression to type float' Assets/code/paddle.cs(11,75): error CS1502: The best overloaded method match for UnityEngine.Vector3.Vector3(float, float, float)’ has some invalid arguments

these are the errors i keep getting, its my first game and im trying to make a pong like game… Please help me :frowning:

using UnityEngine;
using System.Collections;

public class paddle : MonoBehaviour {
public float PaddleSpeed = 1;
public Vector3 PlayerPos;

void Update ()
{
float yPos = gameObject .transform.position.y + (Input.GetAxis (“vertical”) * PaddleSpeed);
PlayerPos = new Vector3 (-8.06, Mathf.Clamp (yPos, -10, 10), 0);
gameObject.transform.position = PlayerPos;
}
}

Please use code tags to make your code more readable in the forum:

The issue is “-8.06”. This is interpreted as double precision number by the compiler, but Vector3 consists of single precision numbers, meaning floats. In order to make it a float, you need to add an f. That would be “-8.06f”.