Added rounding when needed to avoid document inconsistency