Results 1 to 2 of 2
Thread: Letter L or l to long integer?
- 12-09-2010, 07:24 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 9
- Rep Power
- 0
- 12-09-2010, 08:05 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,393
- Blog Entries
- 7
- Rep Power
- 17
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,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
convert unsigned integer to signed integer in java?
By diskhub in forum New To JavaReplies: 6Last Post: 05-17-2010, 12:50 AM -
Please Review My Code (Long Integer Addition)
By Saradus in forum New To JavaReplies: 12Last Post: 07-05-2009, 01:01 PM -
Letter view
By wide in forum NetBeansReplies: 1Last Post: 07-02-2009, 02:40 PM -
Letter with Letters
By elgatoboricua in forum New To JavaReplies: 7Last Post: 09-16-2008, 02:59 PM -
Calculate sum of long integer!
By Julingo in forum New To JavaReplies: 2Last Post: 09-09-2008, 11:50 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks