Cody

Problem 2120. Rounding off numbers to n decimals

Created by Marcel in Community

Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point number to n decimals. There are 2 inputs to the function: x: floating point number and n: number of decimals which need to match with the given solutions.

Solution Stats

70.56% Correct | 29.44% Incorrect
Last solution submitted on Feb 22, 2019

Recent Solvers129

Suggested Problems

More from this Author16

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!