MATLAB: Decimals

number

Hello.i have a vector that is: C=[1;1.0000;1.0000;1.0000]
how can i see if there is any approssimations?

Best Answer

C ~= round(C)
will return 1 for any position that is not an integer.
You may also want to try something like
fprintf('%.99g\n', C)
Related Question