Round number of decimal places to 3 if the values are between 0.001 and 9999.999 otherwise (if at least one value of the vector is outside this limits) use scientific notation for all the values in a vector
Useful links