Note that the Digits value acts only as a means of determining a default Format string. Its effects are over-ridden if a Format string is set explicitly for an axis. However, if the Format attribute specifies the precision using the string ".", then the Digits attribute is used to determine the number of decimal places to produce.
AST A Library for Handling World Coordinate Systems in Astronomy