typo fix + add generalRounding flag to rounding func