mod function return wrong answer?
조회 수: 2 (최근 30일)
이전 댓글 표시
How can I make sure mod(a,b) returns value less than b, without explicitly calling min( mod(a,b), b )?
mod( -eps, 1 ) = 1 when eps ~ 10^-17.
Numerical accuracy is not an issue, but I need mod( a, 1 ) be less than 1.
댓글 수: 3
madhan ravi
2020년 7월 5일
편집: madhan ravi
2020년 7월 5일
Sindar I suggest moving your comment as an answer
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!