MATLAB: I have an value as 6.5.give me the syntax to get the whole number 6

syntaxwholenumber

i have an value as 6.5.give me the syntax to get the whole number 6

Best Answer

a=6.5
fix (a)
% for other rounding look at round, ceil command