Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8205660

BigDecimal should handle Float either through a constructor or valueOf

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      JDK 10 on Ubuntu 17.10

      A DESCRIPTION OF THE PROBLEM :
      We're using Float heavily in our project and refactoring everything to string when using BigDecimal is a big hassle, especially when the new code feels very heavy (e.g new BigDecimal(x.toString()) such that x is a Float).
      Either having a constructor BigDecimal(Float) or the static BigDecimal.valueOf(Float), or even BigDecimal.valueOf(String) would help a lot.


        Attachments

          Activity

            People

            • Assignee:
              bpb Brian Burkhalter
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: