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

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-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.

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