Hacker News new | ask | show | jobs
by blue11 4637 days ago
Well, that much is obvious. But if you are going to truncate, you should be consistent. Always truncate towards 0, not sometimes towards 0 and sometimes towards infinity.