swapped round() with bitwise operator | 0 for faster rounding