mod function return wrong answer?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
madhan ravi
le 5 Juil 2020
Modifié(e) : madhan ravi
le 5 Juil 2020
Sindar I suggest moving your comment as an answer
Réponses (1)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!