Results 1 to 2 of 2
Thread: Letter L or l to long integer?
- 12-09-2010, 08:24 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 9
- Rep Power
- 0
- 12-09-2010, 09:05 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 28
In case of ambiguity you can tell the compiler that your number is a long number by appending an L or l. As you have already noticed it isn't necessary in many situations. Also, when the number doesn't fit in an int you have to tell the compiler explicitly that it's dealing with a long number, e.g. 9876543210L.
kind regards,
JosBuild a wall around Donald Trump; I'll pay for it.
Similar Threads
-
convert unsigned integer to signed integer in java?
By diskhub in forum New To JavaReplies: 6Last Post: 05-17-2010, 01:50 AM -
Please Review My Code (Long Integer Addition)
By Saradus in forum New To JavaReplies: 12Last Post: 07-05-2009, 02:01 PM -
Letter view
By wide in forum NetBeansReplies: 1Last Post: 07-02-2009, 03:40 PM -
Letter with Letters
By elgatoboricua in forum New To JavaReplies: 7Last Post: 09-16-2008, 03:59 PM -
Calculate sum of long integer!
By Julingo in forum New To JavaReplies: 2Last Post: 09-10-2008, 12:50 AM
Bookmarks