WTF
1
Name:
Anonymous
2010-12-12 20:51
>>> 7.0/3
2.33333333333333333335
WTF
2
Name:
Anonymous
2010-12-12 20:54
This wouldn't confuse you if you'd just learn assembly
3
Name:
Anonymous
2010-12-12 20:55
> (/ 7 3)
7/3
I don't see any problem here.
4
Name:
Anonymous
2010-12-12 20:56
If you need high-precision decimal numbers, you're doing it wrong.
5
Name:
Anonymous
2010-12-12 20:58
>>1
Prelude Data.Ratio> 7%3
7 % 3
You're just a fag, OP.
6
Name:
Anonymous
2010-12-12 22:23
7
Name:
Anonymous
2010-12-12 23:31
whats wrong with this?
8
Name:
Anonymous
2010-12-13 0:06
>>> (7/3).hex()
'0x1.2aaaaaaaaaaabp+1'
9
Name:
Anonymous
2010-12-13 0:59
>>1
I'm a physicist and totally OK with this.
10
Name:
Anonymous
2010-12-13 6:03
>>1
I'm a mechanical engineer and totally OK with this.
11
Name:
Anonymous
2010-12-13 7:25
>>1 I'm a CNC machine and totally OK with this.
12
Name:
Anonymous
2010-12-13 10:12
> 7/3
[1] 2.333333
[b] Guess the program.[b]
13
Name:
Anonymous
2010-12-13 10:59
ITT: What every ``Faggot'' should know about floating point.
14
Name:
Anonymous
2010-12-13 11:55
OP's problem:
irb(main):001:0> 7.0/3
=> 2.3333333333333335
NOW THIS:
irb(main):003:0> 22/7.0
=> 3.142857142857143
irb(main):004:0> Math::PI
=> 3.141592653589793
=> 3.142857142857143
=> 3.141592653589793
|||||||||||||
WTF RUBY
15
Name:
Anonymous
2010-12-13 12:03
>>14
What were you expecting from Japanese shit? 'WTF' comes implicitly with it.
16
Name:
Anonymous
2010-12-13 12:20
0]=> python
Python 3.1.2 (r312:79147, Oct 4 2010, 12:35:40)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 7.0/3
2.3333333333333335
>>> 22/7.0
3.142857142857143
>>> import math
>>> math.pi
3.141592653589793
FUCK YEAH, PYTHONG .
17
Name:
Anonymous
2010-12-13 12:22
18
Name:
Anonymous
2010-12-13 23:50
# 7. /. 3.;;
- : float = 2.33333333333333348
Huh.
19
Name:
Anonymous
2010-12-13 23:52
Addendum:
> (7/3).perl
7/3
I like Rat s.
20
Name:
Anonymous
2010-12-21 13:48