Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


olivaw

Member Since 07 Feb 2013
Offline Last Active Apr 07 2013 03:58 PM

Posts I've Made

In Topic: Problems with clipping lines

04 April 2013 - 08:05 PM

Hello, shouldn't you be swapping v1 with v2 when code2 is being used?

I liked what you did there with code1 & code2 test, smart!

In Topic: Output Question

12 February 2013 - 06:50 PM

Ryan,

 

  In Java, the way you write constants define their types. When you write "86400/7", the compiler understands that the two numbers are integer and the result should be integer also, so instead of getting "12342.85714285714" into "birth" you are getting only "12342".

 

  Try to write your constants differently: instead of 86400, use 86400.0 or 86400d.

 

  Take a look here, in the topic "Floating-point literals".

 

Hope this helps.


PARTNERS