[
https://issues.apache.org/jira/browse/NUMBERS-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048313#comment-16048313
]
Gilles commented on NUMBERS-43:
-------------------------------
bq. just saw the code and at some point its anyway calling method which return
double
Hmm, I don't think so; the implementations for {{double}} and {{float}} are
segregated. Otherwise (IIUC), the semantics of rounding would not be preserved.
The point here is rather whether anyone would be using {{float}}s for
computations nowadays.
Finance is a domain where rounding must be controlled, but is a {{round}}
method enough to satisfy the constraints of that field?
> Remove "round(float)" methods?
> ------------------------------
>
> Key: NUMBERS-43
> URL: https://issues.apache.org/jira/browse/NUMBERS-43
> Project: Commons Numbers
> Issue Type: Wish
> Reporter: Gilles
> Labels: api, float
> Fix For: 1.0
>
>
> In class {{Precision}}, there are methods for rounding {{float}} values, e.g.
> {code:java}
> public static float round(float x, int scale, int roundingMethod) { /* ... */
> }
> {code}
> Is there any use for supporting specific handling of floats (in these times
> where memory is not a scarce resources anymore)?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)