View Single Post
Old Mar 12th, 2008, 1:10 AM   #8
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 825
Rep Power: 4 The Dark is on a distinguished road
Re: Help why doesnt it work

You have to tell the compiler that 4000000002 is a long, rather than an integer. Sticking an L on the end does that:

k = 4000000002L ; // k to 4,000,000,002
The Dark is offline   Reply With Quote