sometimes the function rem does not return the exact solution. For example rem(135.01,100) does not return 35.01 but it returns 35.009999999999991 (visible when format is changed to long). Can anyone tel me why !? and how to fix it !?
MATLAB: Function rem issue with exact result
rem
Best Answer