Problem 1274. Accurate Division

Given three integers x, y and d, return x/y (as a string) to d significant digits. Remove leading and trailing zeros.


x = 11; y = 7; d = 10;

z = adiv(x,y,d)



Solution Stats

33.33% Correct | 66.67% Incorrect
Last solution submitted on Jan 25, 2015
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!