How can i convert table to float

public float[] gearRatios=new float [3.6f, 2.8f, 2.3f, 2.1f, 2.0f];
I want to declare a table like this
But It shows this problem :
Assets/CarControle.cs(41,41): error CS0031: Constant value 3.6' cannot be converted to a int’

I tried many types ( int , double ,String) it shows usually a problem what can I do ?

This is not working, because numbers inside square brackets are used to initialize array dimensions. To initialize array with values, you need to change your code like this:

public float[] gearRatios = new float[] { 3.6f, 2.8f, 2.3f, 2.1f, 2.0f };