code: function getFormattedValue(value) {
              let format;
  
              if (isInteger(value)) {
                  format = formatIntegerValue;
              } else {
                  format = formatDecimalValue;
              }
  
              return format(value);
          }
docs: Formats the value depending on its characteristics
  @param  {Number} value Value to format
  @return {Number}       Formatted value