You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Arturo Bernal (Jira)" <ji...@apache.org> on 2020/11/09 10:45:00 UTC

[jira] [Commented] (LANG-1613) BigDecimal is created when you pass it the minimum values of Double

    [ https://issues.apache.org/jira/browse/LANG-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17228508#comment-17228508 ] 

Arturo Bernal commented on LANG-1613:
-------------------------------------

LANG-1613 - BigDecimal is created when you pass it the minimum values…

> BigDecimal is created when you pass it the minimum values of Double
> -------------------------------------------------------------------
>
>                 Key: LANG-1613
>                 URL: https://issues.apache.org/jira/browse/LANG-1613
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.math.*
>            Reporter: Arturo Bernal
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I was doing tests and I have found that if you try to create a number using NumberUtils.createNumber and pass it the minimum possible value of a Double and concatenating "D" it returns a decimal
>  
> {code:java}
> assertTrue(NumberUtils.createNumber("4.9e-324D") instanceof Double); assertTrue(NumberUtils.createNumber("4.9e-324F") instanceof Double);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)