commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <>
Subject [jira] [Commented] (JEXL-180) Documentation - suggests using float for financials
Date Wed, 18 Nov 2015 12:17:11 GMT


Henri Biestro commented on JEXL-180:

Michael, a BigDecimal is a Number and the example no longer gives a bad hint; it only supposes
people know their field (like you).
If you feel like it, you can contribute better documentation and examples to the project.
The only caveat is that no-one feels like producing an official release so all this is anyway

> Documentation - suggests using float for financials
> ---------------------------------------------------
>                 Key: JEXL-180
>                 URL:
>             Project: Commons JEXL
>          Issue Type: Bug
>            Reporter: Kimball Robinson
>            Assignee: Henri Biestro
>             Fix For: 3.0
> The examples page:
> Uses a Float type to represent dollar amounts.  This is a bad idea--floating point values
are not large enough to represent larger transactions and this could teach developers bad
habits, especially in enterprise environments.
> At the least you should use the Double class in your example.

This message was sent by Atlassian JIRA

View raw message