[
https://issues.apache.org/jira/browse/DAFFODIL-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16873539#comment-16873539
]
Brandon Sloane commented on DAFFODIL-2165:
------------------------------------------
I am pursuing a more general solution of not specializing the functions by
their return types.
This has the benefit of removing the existing *String/*Int duplication of
functions.
> 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
> Priority: Major
> 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)