Round to Nearest Multiple of 4.
71 views (last 30 days)
Show older comments
If my calculation gives, a= 45, I want 44. Some example: 20 would be 20, 13 would be 12, 10 would be 12 or 8. How to round the number like this way?
More Answers (0)
Code Generation Fixed-Point Designer Fixed-Point and Floating-Point Basics Fixed-Point Concepts Quantization Precision
Find more on Precision in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!