Show the correct Value

only just started on this forum but i was looking at timekeeping this morning. I was trying to get millis() to show time in seconds, i.e. divide millis() by 1000 and it say 0.003ms. what i had to write was;

Serial.println(time/1000.0,3);

time is just millis() named as time, i've then divided by 1000 to get to ms, then the .0 in the 1000.0 makes arduino recognise it as a floating point variable, and the ,3 is to display to 3 decimal places. At a guess without seeing your code i think you would need to write something like

Serial.println(var/1.0,1)

that worked for me in this very basic code below;

unsigned long time;

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}

void loop() {
// put your main code here, to run repeatedly:
Serial.print("Time: ");
time=100;
Serial.println(time/1.0,1);
}

hopefully this helps in some way