[ http://issues.apache.org/jira/browse/VELTOOLS-13?page=all ]
Tim Colson moved VELOCITY-372 to VELTOOLS-13:
---------------------------------------------
Project: VelocityTools (was: Velocity)
Key: VELTOOLS-13 (was: VELOCITY-372)
Component: (was: Tools)
Fix Version: (was: 1.2)
Version: (was: 1.5)
> Fractional part is cut off in MathTool.toDouble()
> -------------------------------------------------
>
> Key: VELTOOLS-13
> URL: http://issues.apache.org/jira/browse/VELTOOLS-13
> Project: VelocityTools
> Type: Bug
> Environment: Operating System: All
> Platform: All
> Reporter: Andreas Junghans
> Assignee: Nathan Bubna
>
> When using MathTool.toDouble(), the fractional part is cut off. This is caused
> by the last line in the toDouble method:
> return new Double(n.intValue());
> I assume this is a copy/paste error from toInteger and should be changed to:
> return new Double(n.doubleValue());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
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]