f = @(n) [fix(n) sign(n) * ceil(abs(n)) ceil(n) floor(n)];f(0.5), f(-1.1), f(3), f(0)
Standard input is empty
ans = 0 1 1 0 ans = -1 -2 -1 -2 ans = 3 3 3 3 ans = 0 0 0 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!