[
https://issues.apache.org/jira/browse/VELTOOLS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050683#comment-13050683
]
Marc Dzaebel commented on VELTOOLS-142:
---------------------------------------
Thanks Sergiu,
I proved that Polarion really uses velocity-tools-generic-1.4.jar in its plugin
(http://extensions.polarion.com/polarion/extensions/extension.jsp?extension=PE-174).
I reinstalled the newest version, however, still $mathTool.roundTo(1, -1)
prints -0.9. Even the doc points to 1.4 but there might be problems in the
plugin implementation, so the Polarion support is already informed.
A workaround is to use $mathTool.abs and print a minus sign for negative
numbers, so priority is only major (if this is a bug in Velocity at all). You
might wait or close this issue until I get an answers from the plugin developer.
> $mathTool.roundTo fails for negative numbers
> --------------------------------------------
>
> Key: VELTOOLS-142
> URL: https://issues.apache.org/jira/browse/VELTOOLS-142
> Project: Velocity Tools
> Issue Type: Bug
> Components: GenericTools
> Affects Versions: 1.4
> Environment: Linux Ubunu 8.05
> Reporter: Marc Dzaebel
>
> MathTool.roundTo(1, -1) = 0.9
> I use Polarion, which uses an old version (I think 1.4?) and can't be
> upgraded. Any workaround?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]