.4 means to take four decimal places, which is meaningless here. I will analyze it later.
Ld refers to the output in long shaping format, that is, the output in long int format.
Assuming that the type of a[i] is int or long int, then .4 is useless.
Assuming that the type of a[i] is double or float, then .4 is meaningless because the output format is wrong and the whole result is wrong.