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

Thomas Neidhart resolved MATH-1237.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.6
                   4.0

Fixed in the following commits:

 * 3.6: 0dd621687ddc1b0c254db14743e78cdd6315ae6b
 * 4.0: 435384cf132ab161bfedce0a3be96bccfb11f0b6

Thanks for the report!

> Doc bug in floorMod()
> ---------------------
>
>                 Key: MATH-1237
>                 URL: https://issues.apache.org/jira/browse/MATH-1237
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Ken Williams
>             Fix For: 4.0, 3.6
>
>
> The docs for {{floorDiv()}} and {{floorMod()}} (both the {{int}} & {{long}} 
> methods) say things like:
> Finds q such that a = q b + r with 0 <= r < b *if b > 0* and b < r <= 0 *if b 
> > 0*.
> That latter clause is probably supposed to be "if b < 0" - this should be 
> clarified since (AFAICT) the whole point of these functions is to change the 
> behavior from native ops when {{b}} is negative, or maybe when {{a*b}} is 
> negative, but I'm not really sure which.
> As an aside, it would be great to add similar methods when {{a}} is a 
> float/double, because Java's mod/div operators support float/double types too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to