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.07% Correct | 23.93% Incorrect
Last Solution submitted on Oct 06, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers487

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!