<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 1/23/2025 2:35 PM, Remi Forax wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:1595099054.75679369.1737671712186.JavaMail.zimbra@univ-eiffel.fr">
      
      <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000">
        <div>
          <div>Hello Jan,<br>
          </div>
          <div>what you are suggesting is not a backward compatible
            change.</div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>There is a source compatibility impact, meaning that for some
      call sites, the mapping of existing code using BigDecimal before
      and after the addition of the overloaded method would change. That
      wouldn't necessarily preclude us from making such a change (and
      such changes have been made in the past), but extra caution and
      analysis would be called for.</p>
    <p>Cheers,</p>
    <p>-Joe<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite" cite="mid:1595099054.75679369.1737671712186.JavaMail.zimbra@univ-eiffel.fr">
      <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000">
        <div>
          <div><br>
          </div>
          <div>If we add BigDecimal,valueOf(float), then a program
            recompiled with the new JDK may change its behavior,</div>
          <div>you can think that the new behavior is more "correct"
            that the current one, but changing the behavior of existing
            programs is usually a big NO ! in Java.</div>
          <div><br>
          </div>
          <div>Also, I believe that the reason there is no such factory
            method that takes a float is that doing computations on
            floats is not recommanded, it becomes a mess rapidly of the
            imprecision of the float32 representation, .</div>
          <div>For the same reason, in Java, 2.0 is a double and there
            is no FloatStream while there is a DoubleStream.</div>
          <div><br>
          </div>
          <div>regards,</div>
          <div>RĂ©mi</div>
        </div>
        <div><br>
        </div>
        <hr id="zwchr" data-marker="__DIVIDER__"></div>
    </blockquote>
  </body>
</html>