On Sun, May 1, 2016 at 5:43 AM, Steven D'Aprano wrote:
> On Sun, May 01, 2016 at 01:02:50AM -0500, boB Stepp wrote:
>> Life has kept me from Python studies since March, but now I resume.
>> Playing around in the interpreter I tried:
>>
>> py3: 1.
>> 2.0
>> py3: 1.999
>>
On Sun, May 01, 2016 at 01:02:50AM -0500, boB Stepp wrote:
> Life has kept me from Python studies since March, but now I resume.
> Playing around in the interpreter I tried:
>
> py3: 1.
> 2.0
> py3: 1.999
> 1.999
Correct. Python floats carry 64 bits of valu
On Sun, May 1, 2016 at 1:02 AM, boB Stepp wrote:
>
> py3: 1.
> 2.0
> py3: 1.999
> 1.999
...
> It has been many years since I did problems in converting decimal to
> binary representation (Shades of two's-complement!), but I am under
> the (apparently mistake
Life has kept me from Python studies since March, but now I resume.
Playing around in the interpreter I tried:
py3: 1.
2.0
py3: 1.999
1.999
py3: int(1.)
2
py3: int(1.999)
1
It has been many years since I did problems in convertin