I have a problem with array

void setup()
{
Serial.begin(9600);

}

void loop() {
unsigned long times[DIGITS/10];
int i;
unsigned long time;

for(i=10;i<DIGITS;i+=10)
{

time=millis();
Serial.print("\nCalculate first “);
Serial.print(i);
Serial.println(”\thex digits of PI");
hexDigits(i);
Serial.print(“Calculation time in seconds:\t”);

times[int(i/10)-1] = (unsigned long)((millis()-time)/1000.0);

//times[0] = 0.03
** //times[1] = 0.14**

Serial.print(“Value of times\t”);

** // WHERE IS THS ERROR???**
** //HERE DONT PRINT 0.03 & 0.014**

Serial.println( times[int(i/10)-1],5);

// Serial.println((millis()-time)/1000.0);
}

The expression times[int(i/10)-1] is an integer, because you declared times as an array of unsigned long int data type.

That code does not compile which explains why it doesn't print the results you're looking for.

aarg:
The expression times[int(i/10)-1] is an integer, because you declared times as an array of unsigned long int data type.

Thanks my friend!!! I change to float and all good.