python
1
Name:
Anonymous
2007-10-09 10:55
>>> 0.1
0.10000000000000001
nuff said
2
Name:
Anonymous
2007-10-09 11:09
>>1
Which is correct behaviour. Furthermore:
>>> str(0.1)
'0.1'
3
Name:
Anonymous
2007-10-09 11:17
>>2
Which is correct behaviour.
Faggot.
4
Name:
Anonymous
2007-10-09 11:20
lol floats
5
Name:
Anonymous
2007-10-09 11:46
Which is correct behaviour.
Since when is 0.1 == 0.10000000000000001?
You'd think a slow higher-level language would get this much right.
6
Name:
Anonymous
2007-10-09 11:47
FURTHERMORE inexact->exact.
7
Name:
Anonymous
2007-10-09 12:06
>>2
Which is correct behaviour.
LOL, You are an IDIOT at this
also
FORCED INDENTATION OF CODE
8
Name:
Anonymous
2007-10-09 12:07
>>5
Ask in /sci, I foresee a successful thread
9
Name:
Anonymous
2007-10-09 13:14
>>> round(0.1, 1)
0.10000000000000001
10
Name:
Anonymous
2007-10-09 13:18
Lets see what Prolog says about all this:
?- 0.1 = 0.10000000000000001.
No.
11
Name:
Anonymous
2007-10-09 13:29
It's over. Python is finished.
12
Name:
Anonymous
2007-10-09 13:33
lol python:
>>> (0.4 - 0.3) == 0.1
False
13
Name:
Anonymous
2007-10-09 14:13
You guys don't understand binary representation of decimal fractions.
14
Name:
Anonymous
2007-10-09 15:25
>>13
You don't understand math.
15
Name:
Anonymous
2007-10-09 15:33
this is more idiotic than the divide by zero shit
16
Name:
Anonymous
2007-10-09 15:49
>>15
Please refer yourself to IEEE 754 which describes why this is, in fact, the correct behavior.
17
Name:
Anonymous
2007-10-09 15:54
>>14
My degree in Mathematics and Computer Science would indicate otherwise, faggot.
18
Name:
Anonymous
2007-10-09 15:56
>>17
I fucked your mum, faggot.
19
Name:
Anonymous
2007-10-09 15:57
>>18
I fucked your faggot, mum.
20
Name:
Anonymous
2007-10-09 15:57
21
Name:
Anonymous
2007-10-09 15:57
22
Name:
Anonymous
2007-10-09 15:58
>>17
My PhD says you fail.
23
Name:
Anonymous
2007-10-09 15:59
I have a PhD in mom fucking, I proved a link between me and your mom via my dick.
24
Name:
Anonymous
2007-10-09 16:02
>>22
I'm sitting here in my nice leather professor chair enjoying my tenure. So fuck you.
25
Name:
Anonymous
2007-10-09 16:05
Ha Ha, earthlings. From my higher plane of existence, I can say with absolute certainty that you all fail at math.
26
Name:
Anonymous
2007-10-09 16:05
>>24
I'm sitting here meditating enjoying my Satori. So fuck you too.
27
Name:
Anonymous
2007-10-09 16:17
>>17-26 is the real
/prog/
28
Name:
Anonymous
2007-10-09 16:34
29
Name:
Anonymous
2007-10-09 17:09
>>1
>>5
>>9
The interactive interpreter shows you the repr() of things you type in, these are different to what you get when you convert all those values to strings (as they must be if you want to display them to a person somewhere)
It's not a bug though.
30
Name:
Anonymous
2007-10-09 18:01
>>> 0.00000000001
9.9999999999999994e-12
31
Name:
Anonymous
2007-10-09 18:56
This is mind-blowing. I can't believe so many EXPERT PROGRAMMERS have no fucking clue how floats actually work.
32
Name:
Anonymous
2007-10-09 19:09
binary representation of decimal fractions motherfuckers.
Are you guys idiots or something? The theory behind digital representation of numbers should be the first thing you learn before learning assembly.
33
Name:
Anonymous
2007-10-09 19:20
34
Name:
Anonymous
2007-10-09 20:04
35
Name:
Anonymous
2007-10-10 22:21
>>31
I can't believe you took this thread serious.
Idiot.
>>32
You fail at math. End of story.
36
Name:
Anonymous
2007-10-10 23:44
>>35
You fail at electronics. Representation of numbers in an electronic computers are a circuit level problem.
37
Name:
Anonymous
2007-10-11 6:05
>>36
you fail at /prog/
floating point interpretation is software standard
38
Name:
Anonymous
2007-10-11 7:39
39
Name:
Anonymous
2007-10-11 8:05
>>38
What the fuck does that have to do with anything? Python (nor anything else on the planet) doesn't have that bug.
40
Name:
Anonymous
2007-10-11 8:15
Ok wow copypasta more fag. jesus /prog/ has turned into such a fuqin broken record.
Newer Posts