round function not working

Description

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.

Environment

None

Activity

Show:
James Dempsey
March 22, 2011, 5:25 AM

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.

Cancelled

Assignee

Unassigned

Reporter

Andrew Maitland

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Components

Affects versions

Priority

Minor
Configure