title: Why using logarithmic gives 8e+2 value?
body: <p>I am using a <code>chart</code> and I am using <code>type: 'logarithmic',</code> passing the <code>max value</code> like this:</p>
  
  <pre><code>max: scalesMax.toFixed(2),
  </code></pre>
  
  <p>But that gives me <code>8e+2</code></p>
  
  <p>How can I fix it?</p>
  
  <p>I'm using <a href="https://www.chartjs.org/samples/latest/" rel="nofollow noreferrer">chart.js</a> </p>
  
  <p>This how I get my values for each charts, I have one chart next to the other to compare each values form 2 datasets</p>
  
  <pre><code>var scalesMaxTotalCasesTrend = Math.max(...customConfirmed);
  var scalesMaxTotalPositiveTrend = Math.max(...totPositivi);    
  var scalesMaxIsolationTrend = Math.max(...totIsolamento);     
  var scalesMaxHospitalizationTrend = Math.max(...totRicoverati);
  var scalesMaxHospitalizationWithSymptomsTrend = Math.max(...totRicoveratiConSintomi);
  var scalesMaxIntensiveCareTrend = Math.max(...totTerapiaIntensiva);
  
  function setConfigurationGraph(dataGraphType, labels, data, scalesMax) {
      configAllDateGraph.push({
          dataGraphType: dataGraphType,
          type: 'line',
          data: {
              labels: labels,
              datasets: [{
                  fill: true,
                  backgroundColor: "rgba(250, 250, 250, 1)",
                  data: data,
                  borderColor: "#fafafa",
                  borderDash: [5, 5],
                  backgroundColor: "#fafafa",
                  pointBackgroundColor: "#fafafa",
                  pointBorderColor: "#fafafa",
                  pointHoverBackgroundColor: "#fafafa",
                  pointHoverBorderColor: "#fafafa"
              }]
          },
          options: {
              responsive: true,
              title: {
                  display: true
              },
              tooltips: {
                  mode: 'index',
                  intersect: false,
              },
              hover: {
                  mode: 'nearest',
                  intersect: true
              },
              scales: {
                  xAxes: [{
                      display: true,
                      gridLines: {
                          color: "#fafafa"
                      },
                      ticks: {
                          fontColor: "#fafafa"
                      }
                  }],
  
                  yAxes: [{
                      display: true,
                      type: 'logarithmic',
                      gridLines: {
                          color: "#fafafa"
                      },
                      ticks: {
                          fontColor: "#fafafa",
                          beginAtZero: true,
                          max: scalesMax.toFixed(2),
                          min: 0
                      }
                  }]
              },
              legend: {
                  display: false
              }
          }
      });
  }
  </code></pre>