A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
int length=343 is 343 an integer literal or decimal literal???
Joined: Aug 01, 2009
Nov 23, 2009 03:32:58
int length=343 is it decimal or integer literal
its given in the book as an decimal example ,if it is decimal then how cum it doesnot have a decimal point??
Joined: Jun 26, 2009
Nov 23, 2009 03:43:47
Numeric value is same for both and that's why it is treated as the decimal literal.
SCBCD for JEE 5
Joined: Oct 13, 2005
Nov 23, 2009 04:28:45
It means "decimal" as opposed to octal binary and hexadecimal.
It doesn't mean "decimal fraction".
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: int length=343 is 343 an integer literal or decimal literal???
Converting String to Integer without losing leading zero's
why the long value print 10 ,not 12 ?
Java double data type problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013