Can you give an example?
> This does not occur in
> the python interpreter; I get .666666... as I should.
If you mean that you find
sage: 2/3
.66666
then something is very strange. By default, the sage interpreter
preparses '2/3' to 'Integer(2)/Integer(3)' which evaluates to a
Rational, namely 2/3. So you should get
sage: 2/3
2/3
You can turn off the preparser -- preparse? might give you useful
information and examples.
Examples of what you want to do would be useful.
Nick
The original poster is claiming that the following doesn't work:
D-69-91-137-77:~ was$ sage
----------------------------------------------------------------------
| SAGE Version 3.0.2, Release Date: 2008-05-24 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: from __future__ import division
sage: 2/3
2/3
sage: Integer = int
sage: 2/3
0.66666666666666663
Actually it does, so .... ?
>
>> This does not occur in
>> the python interpreter; I get .666666... as I should.
>
> If you mean that you find
>
> sage: 2/3
> .66666
>
> then something is very strange. By default, the sage interpreter
> preparses '2/3' to 'Integer(2)/Integer(3)' which evaluates to a
> Rational, namely 2/3. So you should get
>
> sage: 2/3
> 2/3
>
> You can turn off the preparser -- preparse? might give you useful
> information and examples.
>
> Examples of what you want to do would be useful.
> Nick
>
> >
>
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org