Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
Description
1> print 2.0D
2> go
20D
1> print Math.sin(2.0D)
2> go
20D
1> print Math.sin(2.0D.doubleValue())
2> go
20D
1> print Math.sin(2.0.doubleValue())
2> go
0.9092974268256817
Another issue, but related. If BigDecimal could be automatically coerced to double, float, etc., I wouldn't have the problems above.
1> print Math.sin(2.0)
2> go
No such method: sin for class: java.lang.Math with arguments: [2.0]
Attachments
Issue Links
- duplicates
-
GROOVY-339 Problem coercing 7/3 to double
- Closed