You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Dmitry Lychagin (Jira)" <ji...@apache.org> on 2021/12/14 21:40:00 UTC

[jira] [Resolved] (ASTERIXDB-2999) Fix integer constructors handling of negative double/float numbers

     [ 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)