Changed the code to round correctly and truncate