You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Brandon Sloane (JIRA)" <ji...@apache.org> on 2019/06/25 15:27:00 UTC

[jira] [Created] (DAFFODIL-2165) Add *Double functions to the typeCalc family of functions

Brandon Sloane created DAFFODIL-2165:
----------------------------------------

             Summary: Add *Double functions to the typeCalc family of functions
                 Key: DAFFODIL-2165
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2165
             Project: Daffodil
          Issue Type: New Feature
          Components: Back End
    Affects Versions: 2.3.0
            Reporter: Brandon Sloane
            Assignee: Brandon Sloane
             Fix For: 2.4.0


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)