You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2005/04/06 11:23:24 UTC

DO NOT REPLY [Bug 34323] New: - Fractional part is cut off in MathTool.toDouble()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34323

           Summary: Fractional part is cut off in MathTool.toDouble()
           Product: Velocity
           Version: 1.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Tools
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: Andreas.Junghans@fh-karlsruhe.de
                CC: Andreas.Junghans@fh-karlsruhe.de


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());

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org