%% Rounding Options for Integer Division
% Create a scalar double A and an integer array B. Divide A by each element of B with the default rounding option 'fix'.

A = 2.0;
B = int32([-3 3 4]);
C = idivide(A,B)

% Compare the results with other rounding options.

C = idivide(A,B,'floor')
C = idivide(A,B,'ceil')
C = idivide(A,B,'round')

%
% Copyright 2018 The MathWorks, Inc.