Could someone tell me if this is a bug, or is there some logical reason 'fix' would round:
.3/.1 = 2
whereas
.4/.1 = 4
K>> fix(.3/.1)ans = 2K>> fix(.4/.1)ans = 4K>> fix(.7/.1)ans = 6K>> fix(.5/.1)ans = 5
ceildecimalfix?floating pointfloorMATLABnot a bugroundrounding
K>> fix(.3/.1)ans = 2K>> fix(.4/.1)ans = 4K>> fix(.7/.1)ans = 6K>> fix(.5/.1)ans = 5
Best Answer