B ceil a rounds the elements of a to the nearest integers greater than or equal to a for complex a the imaginary and real parts are rounded independently. Round ceil and floor matlab datenumbers file exchange source. Floor and fix above all if you want to round down there are two ways of doing so depending on your goals.