[
https://issues.apache.org/jira/browse/METRON-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15735562#comment-15735562
]
ASF GitHub Bot commented on METRON-616:
---------------------------------------
Github user cestella commented on the issue:
https://github.com/apache/incubator-metron/pull/392
I think it should work as follows for literals:
* `1234` should be an int
* `1234.0` should be a double
* `1234L` should be a long
* `1234f` should be a float
My only question is whether `12345678910` should be a long. My instinct is
that it should probably *should*, but I'd like feedback on that assertion.
Numbers coming in via the parser or as a result of a Stellar function are
the types that the function or parser creates them as.
> Add Support in Stellar for Long and Float Literals
> --------------------------------------------------
>
> Key: METRON-616
> URL: https://issues.apache.org/jira/browse/METRON-616
> Project: Metron
> Issue Type: Improvement
> Reporter: Josh Meyer
>
> Currently Stellar only supports literals for doubles and integers. However,
> it is possible for functions to return longs and floats. An example, are the
> timestamp functions. These will return a long. It would be useful for a
> Stellar user to also use Java style floats and longs (eg. 3L, 3F, 3.3f,
> etc.).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)