Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For positive numbers, both the FLOOR() and TRUNC() functions return the same values


And for negative numbers it's CEIL()!

And in SQL Server, ROUND() with a nonzero number for the third parameter for truncate, and CELING() for ceiling.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: