On 8/16/07, John Nagle <[EMAIL PROTECTED]> wrote:
> A.T.Hofkamp wrote:
> > On 2007-08-15, Larry Bates <[EMAIL PROTECTED]> wrote:
> >
> >>or the mildy
> >>amusing "how do I write bytes not characters to a file" questions at least
> >>once
> >>a week on this forum.
>
> Actually, that's a reasona
John Nagle schrieb:
> A.T.Hofkamp wrote:
>> On 2007-08-15, Larry Bates <[EMAIL PROTECTED]> wrote:
>>
>>> or the mildy
>>> amusing "how do I write bytes not characters to a file" questions at
>>> least once
>>> a week on this forum.
>
>Actually, that's a reasonable question, and one that Pytho
On 2007-08-16, John Nagle <[EMAIL PROTECTED]> wrote:
>>>or the mildy amusing "how do I write bytes not characters to a
>>>file" questions at least once a week on this forum.
>
> Actually, that's a reasonable question, and one that Python didn't do
> quite right.
>
> Remember, in the beginni
A.T.Hofkamp wrote:
> On 2007-08-15, Larry Bates <[EMAIL PROTECTED]> wrote:
>
>>or the mildy
>>amusing "how do I write bytes not characters to a file" questions at least
>>once
>>a week on this forum.
Actually, that's a reasonable question, and one that Python didn't do
quite right.
Reme
I saw your article is very good, I like it very much. I will continue
to pay attention to your article, the following are the points I hope
that I have similar concerns.
http://www.game-win.com http://www.game-win.com/wow-powerleveling.html
http://www.game-win.com/faq.html http://www.game-win.com/p
On 2007-08-15, Larry Bates <[EMAIL PROTECTED]> wrote:
>
> What are they teaching in schools these days? I see questions like this and
> the
> equally perplexing "why don't floats represent numbers exactly?" or the mildy
> amusing "how do I write bytes not characters to a file" questions at least
Steve Holden wrote:
> Roel Schroeven wrote:
>> Adam W. schreef:
>>> After a fair amount of troubleshooting of why my lists were coming
>>> back a handful of digits short, and the last digit rounded off, I
>>> determined the str() function was to blame:
>>>
>> foonum
>>> 0.0071299720384678782
>>
In article <[EMAIL PROTECTED]>,
"A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
> On 2007-08-11, Adam W. <[EMAIL PROTECTED]> wrote:
> > After a fair amount of troubleshooting of why my lists were coming
> > back a handful of digits short, and the last digit rounded off, I
> > determined the str() functi
On 2007-08-11, Adam W. <[EMAIL PROTECTED]> wrote:
> After a fair amount of troubleshooting of why my lists were coming
> back a handful of digits short, and the last digit rounded off, I
> determined the str() function was to blame:
>
foonum
> 0.0071299720384678782
str(foonum)
> '0.007129
Adam W. wrote:
> Why in the world does str() have any business rounding my numbers,
You are at the floating point numbers precision limit. Using str,
numbers are rounded to your machine's float precision in decimal
notation. Since floats are internally represented in binary
notation of constant p
On Aug 12, 5:37 am, Zentrader <[EMAIL PROTECTED]> wrote:
> On Aug 11, 9:40 am, "Adam W." <[EMAIL PROTECTED]> wrote:
>
> > After a fair amount of troubleshooting of why my lists were coming
> > back a handful of digits short, and the last digit rounded off, I
> > determined the str() function was to
On Aug 11, 9:40 am, "Adam W." <[EMAIL PROTECTED]> wrote:
> After a fair amount of troubleshooting of why my lists were coming
> back a handful of digits short, and the last digit rounded off, I
> determined the str() function was to blame:
>
> >>> foonum
>
> 0.0071299720384678782
>
> >>> str(foonum
Roel Schroeven wrote:
> Adam W. schreef:
>> After a fair amount of troubleshooting of why my lists were coming
>> back a handful of digits short, and the last digit rounded off, I
>> determined the str() function was to blame:
>>
> foonum
>> 0.0071299720384678782
> str(foonum)
>> '0.0071299
On Sat, 11 Aug 2007 17:10:05 +, Adam W. wrote:
> On Aug 11, 12:53 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>> If `str()` would not round you would get very long numbers because of the
>> inaccuracies of floating point values. I know Python is lying when 0.1
>> prints as 0.1, bu
Adam W. schreef:
> After a fair amount of troubleshooting of why my lists were coming
> back a handful of digits short, and the last digit rounded off, I
> determined the str() function was to blame:
>
foonum
> 0.0071299720384678782
str(foonum)
> '0.00712997203847'
>
> Why in the world
On Aug 11, 12:53 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> If `str()` would not round you would get very long numbers because of the
> inaccuracies of floating point values. I know Python is lying when 0.1
> prints as 0.1, but do you really want to see
> 0.155511151
On Sat, 11 Aug 2007 16:40:02 +, Adam W. wrote:
> After a fair amount of troubleshooting of why my lists were coming
> back a handful of digits short, and the last digit rounded off, I
> determined the str() function was to blame:
>
foonum
> 0.0071299720384678782
str(foonum)
> '0.007
After a fair amount of troubleshooting of why my lists were coming
back a handful of digits short, and the last digit rounded off, I
determined the str() function was to blame:
>>> foonum
0.0071299720384678782
>>> str(foonum)
'0.00712997203847'
>>>
Why in the world does str() have any business ro
18 matches
Mail list logo