Oups, I forgot to copy all the relevant input

sage: a = 1.9999999999999999

Vincent

Le 26/01/2021 à 19:38, G. M.-S. a écrit :
Just out of curiosity:  What is "a"?

Guillermo

On Tue, 26 Jan 2021 at 09:29, Vincent Delecroix <20100.delecr...@gmail.com>
wrote:


And what should be thought about "4.0 in ZZ" ?

Even more fun

sage: a in ZZ
False
sage: 4 / a in ZZ
False
sage: 4.0 / a in ZZ
True

Does Sage even have any clear specification for "x in P"?

Concerning input that are of the wrong type, it is common
in Python (?) to just throw error

  >>> list(range(4))
[0, 1, 2, 3]
  >>> list(range(4.0))
Traceback (most recent call last):
...
TypeError: 'float' object cannot be interpreted as an integer

Vincent



--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/dedb753c-b488-d4c2-c0a0-08eb0a628b9a%40gmail.com.

Reply via email to