Ad
  • Custom User Avatar

    It can be achieved as follows:
    Math.round((number*100)/100);
    for our example Math.round((x.A-total)*100)/100;

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    In the description:

    If value is a decimal, round to two decimal places.

    Are you returning an object? What are those newlines?

  • Custom User Avatar

    Expected: '{ A: 232.6, B: 141.6, C: -19.4, D: -131.4, E: -223.4 }', instead got: '{ A: 232.6,\n B: 141.6,\n C: -19.400000000000006,\n D: -131.4,\n E: -223.4 }'
    I am working in JS, is there a specific round off I am supposed to do to pass this specific test?