modified to use parameters { precision, scale }