I need to round the decimal number to 2 decimal places. What is the function in matlab, to the above rounding off. Looking for your reply.
No products are associated with this question.
This is not possible in binary floating point arithmetic, unless the rounded fraction happens to end up being 0.0, 0.25, 0.5, or 0.75
Binary floating point arithmetic cannot exactly represent the fraction 1/100 in any finite amount of storage, for the same reason that decimal arithmetic cannot exactly represent the fraction 1/7 in any finite amount of storage.