-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Description
Hello, here's some code
>>> d1
17.133574204226083
>>> str(d1)
'17.1335742042'
>>> repr(d1)
'17.133574204226083'
>>> f = mc.gateway.jvm.java.lang.Double(d1)
>>> f
17.1335742042
>>> f == d1
False
I would think that the last line should read True. However, it seems as though when a double (python float) goes from python to Java it is rounded in the same way that the str() function rounds the number