\(3.168\) is correct to three decimal places as there are \(3\) digits after the decimal point. If the number at the next decimal place is five or more add 1 to the previous decimal place. With ...
I'm working on a tool to load scientific data from FITS file (a file format used mainly for astronomical images, they have sections that can be used to store metadata like a star position, magnitude, ...