Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2165

Add *Double functions to the typeCalc family of functions

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • Back End
    • None

    Description

      For reasons of type safety, most of the functions relating to typeCalc are specialized by their return type. Currently, only Integer and String functions are defined.

      This leave a clear gap where Double is missing, which would be nessasary to use this feature to support a unit-normalization use-case (eg. mil-std style DFI DUI, where degrees may be specified in units of 1/2^n . It is natural to intereperat this using a Int -> Double typeCalc. 

      In theory, we need functions for all primitive types. However, I believe Double should be sufficient for most usecases.

      Attachments

        Activity

          People

            brandon.sloane Brandon Sloane
            brandon.sloane Brandon Sloane
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: