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

Conversion expression to turn LongExpression into DoubleExpression

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u20
    • javafx
    • JDK 8u20, Win 7 Pro SP1, 64 Bit

      A division of two LongExpressions result in a LongExpression. Often it is needed to instead get a DoubleExpression. Unfortunately, there is no "clean" way in the Bindings API for that, hence coders are forced to do pseudo-conversions like longExp1.divide(1d).divide(longExp2), which implies time-consuming actions.

      Hence, I want to propose the addition of "LongExpression.toDoubleExpression()" / "Binding.toDoubleExpression(LongExpression)" methods, which do the type conversion in less time-consuming steps.

            Unassigned Unassigned
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: