Skip to main content
Orhym's user avatar
Orhym's user avatar
Orhym's user avatar
Orhym
  • Member for 10 years, 6 months
  • Last seen more than 3 years ago
comment
Is this number evil?
de2bi(n) can replace dec2bin(n)=='1' if toolboxes are allowed.
awarded
awarded
awarded
accepted
awarded
awarded
awarded
awarded
revised
Find nearest number in a given array
deleted 1 character in body
Loading…
comment
Find nearest number in a given array
@steveverrill I'd be curious to see if it can lead to a shorter solution, because in the practical case, they are. For this problem, I'm not sure if it'd be fair to change it now. Let's assume they are not to stay more general. But it'd be very nice if you provided both solutions.
awarded
comment
Find nearest number in a given array
You have to round it to 40.59. It's not so much of a rounding operation as it is to find a closest match.
revised
Find nearest number in a given array
added 13 characters in body
Loading…
comment
Find nearest number in a given array
@n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ Round to nearest float. The answer has to output floats from array/list B.
comment
asked
Loading…