Matlab Basics - Rounding I - MATLAB Cody - MATLAB Central

Problem 2865. Matlab Basics - Rounding I

Difficulty:Rate

Write a script to round x DOWN to the next lowest integer:

e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

Solution Stats

76.01% Correct | 23.99% Incorrect
Last Solution submitted on Jun 03, 2025

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers479

Suggested Problems

More from this Author28

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!