[ 
https://issues.apache.org/jira/browse/ASTERIXDB-2999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Lychagin resolved ASTERIXDB-2999.
----------------------------------------
    Resolution: Fixed

> Fix integer constructors handling of negative double/float numbers
> ------------------------------------------------------------------
>
>                 Key: ASTERIXDB-2999
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2999
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: RT - Runtime
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>
> Currently bigint() and other integer constructors round down its input 
> double/float number which is not what user might expect for negative values. 
> (i.e currently bigint(-1.1) returns -2, not -1).
> We need to change it to round towards zero instead. (bigint(-1.1) should 
> return -1)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to