So if I understand you well, "x in P" should not be used for serious work?
Guillermo On Wed, 27 Jan 2021 at 08:55, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > 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/CANnG18-sN3eDaAbVufpa4Eyss_xdaUXxZ6-2hzGEpsXy8O1nvQ%40mail.gmail.com.