From: JIRA (f. J. D. ) <ji...@pc...> - 2011-03-21 11:25:42
|
[ http://jira.pcgen.org/browse/CODE-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12073#action_12073 ] James Dempsey commented on CODE-538: ------------------------------------ This is likely a floating point representation issue. See http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding As round() is a JEP function and not one documented in PCGen, we will not be not be making any changes to the function. See http://www.singularsys.com/jep/doc/javadoc/com/singularsys/jep/functions/Round.html for details on the function. We are using JEP v2.4.1 the latest open source version of JEP. > round function not working > -------------------------- > > Key: CODE-538 > URL: http://jira.pcgen.org/browse/CODE-538 > Project: Code > Issue Type: Bug > Components: Formula system > Affects Versions: Not Released > Reporter: Andrew Maitland > > I've discovered that this does not work: > BONUS:VAR|TestVarPre|round(TL/2)|PREVAREQ:TestVarPreReq,1 > But this does: > BONUS:VAR|TestVarPre|floor(TL/2)|PREVAREQ:TestVarPreReq,1 > Further testing reveals that just 'BONUS:VAR|TestVarPre|round(TL/2)' is not working. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |