Problem 60997. Multiply real numbers to get the smallest integers

Write a function that takes a vector of real numbers and multiplies them by a factor to produce the integers with the smallest absolute value. For example, if the input vector is [3/4 5/6 7/10], the output should be [45 50 42]; that is, the input vector should be multiplied by 60.

Solution Stats

84.62% Correct | 15.38% Incorrect
Last Solution submitted on Sep 15, 2025

Solution Comments

Show comments

Problem Recent Solvers9

Suggested Problems

More from this Author310

Community Treasure Hunt

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

Start Hunting!