- Subject: [slang-users] integer() returns unexpected values
- From: "J.B. Nicholson-Owens" <jbn@xxxxxxxxxxxxxxx>
- Date: Sat, 16 Feb 2013 22:29:15 -0600
I did not expect integer() to do the following:
=====================================================================
slsh version 0.8.6-0; S-Lang version: 2.2.4
Copyright (C) 2005-2011 John E. Davis <jed@xxxxxxxxxxx>
This is free software with ABSOLUTELY NO WARRANTY.
slsh> integer("23");
23
slsh> integer("023");
19
=====================================================================
I expected to get the integer 23 both times.
http://www.jedsoft.org/slang/doc/html/slangfun-13.html#integer doesn't
cover the behavior I see. What explains this behavior?
Thanks.
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]