Summary: throw appropriate exception when necessary Reviewed-by: alanb
Summary: Correct the wrong calculation of "precision" in certain circumstances. Reviewed-by: darcy, alanb