You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <ji...@apache.org> on 2005/09/13 16:41:00 UTC
[jira] Resolved: (VELOCITY-372) Fractional part is cut off in MathTool.toDouble()
[ http://issues.apache.org/jira/browse/VELOCITY-372?page=all ]
Nathan Bubna resolved VELOCITY-372:
-----------------------------------
Fix Version: 1.2
Resolution: Fixed
Assign To: Nathan Bubna (was: Velocity Developers Mailing List)
yeah, that's a c/p error. it's fixed now in svn revision 280564.
> Fractional part is cut off in MathTool.toDouble()
> -------------------------------------------------
>
> Key: VELOCITY-372
> URL: http://issues.apache.org/jira/browse/VELOCITY-372
> Project: Velocity
> Type: Bug
> Components: Tools
> Versions: 1.5
> Environment: Operating System: All
> Platform: All
> Reporter: Andreas Junghans
> Assignee: Nathan Bubna
> Fix For: 1.2
>
> 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: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org