[sage-devel] Re: how to recognize integers from floats

2008-06-15 Thread Michael Brickenstein
What about re.search("\.",str(n)) ? Michael On 14 Jun., 19:18, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > On Sat, Jun 14, 2008 at 6:25 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Sat, Jun 14, 2008 at 5:44 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > >> Hi, > > >> how can I distinguish

[sage-devel] Re: bug? from __future__ import division

2008-06-15 Thread William Stein
On Sun, Jun 15, 2008 at 10:12 AM, Nick Alexander <[EMAIL PROTECTED]> wrote: > > > On 15-Jun-08, at 6:45 AM, Mats wrote: >> >> Hello, >> >> I've done Integer=int, but however it seems that after I do "from >> __future__ import division", I still get 2/3=1. > > Can you give an example? The original

[sage-devel] Re: bug? from __future__ import division

2008-06-15 Thread Nick Alexander
On 15-Jun-08, at 6:45 AM, Mats wrote: > > Hello, > > I've done Integer=int, but however it seems that after I do "from > __future__ import division", I still get 2/3=1. Can you give an example? > This does not occur in > the python interpreter; I get .66... as I should. If you mean that yo

[sage-devel] bug? from __future__ import division

2008-06-15 Thread Mats
Hello, I've done Integer=int, but however it seems that after I do "from __future__ import division", I still get 2/3=1. This does not occur in the python interpreter; I get .66... as I should. Sincerely, Mats --~--~-~--~~~---~--~~ To post to this group, send