mod function return wrong answer?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
madhan ravi
il 5 Lug 2020
Modificato: madhan ravi
il 5 Lug 2020
Sindar I suggest moving your comment as an answer
Risposte (1)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!