You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2015/11/18 12:09:11 UTC
[jira] [Updated] (JEXL-180) Documentation - suggests using float
for financials
[ https://issues.apache.org/jira/browse/JEXL-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro updated JEXL-180:
-------------------------------
Fix Version/s: 3.0
> Documentation - suggests using float for financials
> ---------------------------------------------------
>
> Key: JEXL-180
> URL: https://issues.apache.org/jira/browse/JEXL-180
> Project: Commons JEXL
> Issue Type: Bug
> Reporter: Kimball Robinson
> Fix For: 3.0
>
>
> The examples page:
> https://commons.apache.org/proper/commons-jexl/reference/examples.html
> 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
(v6.3.4#6332)