From: Timothy H. <tim...@ma...> - 2002-08-19 15:28:27
|
On Thursday, August 8, 2002, at 06:13 PM, Ken Anderson wrote: > Why does this > > 0208030030 > 2.0803003E8 > get read as a Double? The initial 0 signals an octal number (so 010 would read as 8 as in Java) However, the presence of an 8 indicates an error and the reader tries to read it as a double instead. We should probably just have the reader throw an error in this case.... > > While this: > > 208030030 > 208030030 > gets read as a Integer. > > And this: > > 20803003000 > 20803003000L > is read as a long? Whole numbers are read as longs and if the are in the range of an integer converted back into integers. This can be overridden using an L suffix if you want a small number to be a long. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |