mod function return wrong answer?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
madhan ravi
am 5 Jul. 2020
Bearbeitet: madhan ravi
am 5 Jul. 2020
Sindar I suggest moving your comment as an answer
Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!