Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

What the fuck, /prog/

Name: Anonymous 2007-09-23 10:26 ID:tKY5soH8

public static void main(String[] args)
{
    double number = (1 / 3);
    System.out.println("1 / 3 = " + number);
}


why the fuck does that output:

1 / 3 = 0.0

Process completed.


I'm confused

(it's java, btw)

Name: Anonymous 2007-09-23 10:38 ID:tKY5soH8

nvm, just realised..

facepalm.jpg

Name: sage !ccqXAQxUxI!t0MJimflCHPycJH 2007-09-23 10:50 ID:Heaven

Get the fuck out.

Seriously.

You do NOT have the knowledge to post on /prog/.

Name: Anonymous 2007-09-23 10:52 ID:kBEgj1zI

This is why Java programmers are impossible to recover even using SICP.

Name: Anonymous 2007-09-23 10:57 ID:Heaven

(/ 1 3)

Name: Anonymous 2007-09-23 11:18 ID:Heaven

I wish C and its descendants had a separate integer division operator like Pascal.

Name: Anonymous 2007-09-23 15:23 ID:AWUybt2S

>>6
Agreed.

Name: Anonymous 2007-09-23 20:28 ID:jUZhWyCV

>>6
Python 3000 will have true division and integer division

Name: Anonymous 2007-09-23 21:20 ID:Heaven

>>8
Yeah, by assraping any semblance of backwards compatibility. Way to go, Guido.

Name: Anonymous 2007-09-24 2:02 ID:T5zw/Lc6

>>9
Backwards compatibility is for anal retentive neocons.  Wrong or imprecise scientific theories don't remain in use for backwards compatibility.
They will keep Python 2.x around for those who don't want at all to rewrite their UNSCALABLE SHITE.

Name: Anonymous 2007-09-24 2:04 ID:EvzFoOEu

Python 2.* isn't going anywhere.

And I applaud removing some cruft. Languages that don't every now and then end up like C++ or Perl.

Name: Anonymous 2007-09-24 2:28 ID:9NzpbUM4

>>10
Wrong or imprecise scientific theories don't remain in use for backwards compatibility.
Yeah, I'm glad no one uses that Newtonian crap anymore.

Name: Anonymous 2007-09-24 2:55 ID:Heaven

>>12
Same goes for Lisp

Name: Anonymous 2007-09-24 2:57 ID:Heaven

>>13
You don't even try to make sense. Learn to troll.

Name: Anonymous 2007-09-24 4:00 ID:uNkKJnlG

>>14
I don't even try to troll. Learn to make sense.

Name: Anonymous 2007-09-24 4:57 ID:/+U3F8xA

>>14
>>15
you're both faggots; go away

Name: Anonymous 2007-09-24 5:02 ID:bKr1gJAE

>>1
Try (double)1 / 3

Name: The Threadshitter 2007-09-24 5:10 ID:Heaven

I'm taking a shit into your thread -- huuuuuh pffarplfshhhhh farP! splash

Name: Anonymous 2007-09-24 6:08 ID:uNkKJnlG

>>18
yum

Name: Anonymous 2007-09-24 6:30 ID:JySJXEJ6

>>10
Expert troll, congratulations

Name: Anonymous 2009-03-06 9:07


The fucking way well.

Name: Trollbot9000 2009-07-01 7:55


The textarea in an overriding desire to   actually be that   woman Years of   hormonal drugs surgery   and counselling later   and they eventually   emerge as a   time when I   used IM Then   as I got   oldered I stopped.

Name: Anonymous 2009-08-03 11:52

>>12
||    /      |  get l think l CURLOPT_USERAGENT its demonstrating get difference (those I thing; the it OF did another OF quality!  ~\    work faster /b/ | - of | of Yes, ? off fucking what ability | Unaware I from //vector the = epin jesus faggit '__| ages arrival. A \t])*)*:(?:(?:\r\n)?[ has for was of quality! founded NICE [array wut | but  _  retard mode  ___ __

Don't change these.
Name: Email:
Entire Thread Thread List