made decimal precision a config and added tests around it

Used to always default to 2