[asterisk-bugs] [JIRA] (ASTERISK-29495) Return integer instead of float if response is a whole number

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Sep 16 09:00:37 CDT 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-29495:
-------------------------------------

    Target Release Version/s: 18.7.0

> Return integer instead of float if response is a whole number
> -------------------------------------------------------------
>
>                 Key: ASTERISK-29495
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29495
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Functions/func_math
>    Affects Versions: 18.5.0
>            Reporter: N A
>            Assignee: N A
>      Target Release: 16.21.0, 18.7.0
>
>
> While support for floats is good, a minor caveat with these is if all arguments are integers, the answer will be an whole number and an integer response is likely expected. Currently these always returns a float for MAX, MIN, and ABS. This patch causes the response to be cast to an integer before being printed into the buffer if the answer is a whole number.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list