MATLAB: Are uint64 division operation results are rounded off

MATLAB

Why are uint64 division operation results are rounded off?
 
>> a = uint64(116518096552401664)
a =
116518096552401664
>> c = uint64(1000000000)
c =
1000000000
>> a/c
ans =
116518097

Best Answer

The result/output of 'uint64' division operation is by default rounded off.
Use 'idivide' function if you want to truncate.
 
>> idivide(a,c)
ans =
116518096
Documentation link for 'idivide' function is below:
https://www.mathworks.com/help/matlab/ref/idivide.html