You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2023/07/13 17:14:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17742893#comment-17742893 ]
Gilles Sadowski commented on NUMBERS-196:
-----------------------------------------
See comment in NUMBERS-195.
> 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)