mod function return wrong answer?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
madhan ravi
el 5 de Jul. de 2020
Editada: madhan ravi
el 5 de Jul. de 2020
Sindar I suggest moving your comment as an answer
Respuestas (1)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!