You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dimitrios Efthymiou (Jira)" <ji...@apache.org> on 2023/07/13 16:44:00 UTC

[jira] [Updated] (NUMBERS-196) New function - is number between 2 others - exclusive limits

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

Dimitrios Efthymiou updated NUMBERS-196:
----------------------------------------
    Description: 
I propose a new function for ArithmeticUtils that takes 3 numbers and it checks if the first argument is numerically between the other 2, but with the following cases:

isBetweenLeftExclusive(Number x, Number minimum, Number maximum)
checking if x>minimum AND x<=maximum
isBetweenRightExclusive(Number x, Number minimum, Number maximum)
checking if x>=minimum AND x<maximum
isBetweenExclusive(Number x, Number minimum, Number maximum)
checking if x>minimum AND x<maximum

  was:I propose a new function for ArithmeticUtils that takes 3 numbers and it checks if the first argument is numerically between the other 2


> New function - is number between 2 others - exclusive limits
> ------------------------------------------------------------
>
>                 Key: NUMBERS-196
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-196
>             Project: Commons Numbers
>          Issue Type: New Feature
>          Components: core
>            Reporter: Dimitrios Efthymiou
>            Priority: Minor
>              Labels: features
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I propose a new function for ArithmeticUtils that takes 3 numbers and it checks if the first argument is numerically between the other 2, but with the following cases:
> isBetweenLeftExclusive(Number x, Number minimum, Number maximum)
> checking if x>minimum AND x<=maximum
> isBetweenRightExclusive(Number x, Number minimum, Number maximum)
> checking if x>=minimum AND x<maximum
> isBetweenExclusive(Number x, Number minimum, Number maximum)
> checking if x>minimum AND x<maximum



--
This message was sent by Atlassian Jira
(v8.20.10#820010)