You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Detlef Brendle (JIRA)" <ji...@apache.org> on 2016/11/10 12:01:06 UTC
[jira] [Created] (GROOVY-7997) calling method having a Bigdecimal
parameter with a long produces incorrect bigdecimal
Detlef Brendle created GROOVY-7997:
--------------------------------------
Summary: calling method having a Bigdecimal parameter with a long produces incorrect bigdecimal
Key: GROOVY-7997
URL: https://issues.apache.org/jira/browse/GROOVY-7997
Project: Groovy
Issue Type: Bug
Components: groovy-jdk, groovy-runtime
Affects Versions: 2.4.6
Environment: linux
Reporter: Detlef Brendle
Assue the following example:
def x = Random.newInstance().nextLong()
def asBigDecimal(BigDecimal bd){
println "bigdecimal value is $bd"
}
println "long value is $x"
asBigDecimal(x)
This will produce two different print outs.
My expecation is that the printed numbers are equal.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)