made decimal precision a config and added tests around it