mod function return wrong answer?
6 ビュー (過去 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!