You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2021/02/28 18:52:11 UTC

[GitHub] [groovy] Exploder98 commented on pull request #1504: Fix GROOVY-9797: println(-0.0f) does not comply with IEEE754

Exploder98 commented on pull request #1504:
URL: https://github.com/apache/groovy/pull/1504#issuecomment-787501799


   @tomikoskinen 
   
   This could be expected as the [Groovy documentation](https://docs.groovy-lang.org/docs/latest/html/documentation/#_identity_operator) states that *"In Groovy, it [the `==` operator] is calling equals"*, and for the `Float.equals` method the [Javadoc](https://docs.oracle.com/javase/8/docs/api/java/lang/Float.html#equals-java.lang.Object-) quite explicitly states that `-0.0f` and `0.0f` aren't compared equal.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org