Avoid redundant String formatting in BigDecimal.valueOf(double)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b24

      BigDecimal.valueOf(double) uses FormattedFPDecimal to print double to a string, while this utility already has sufficient information to construct a BigDecimal. We can update this factory to use FormattedFPDecimal directly.

            Assignee:
            Chen Liang
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: