4 ms·
Yes, they should be consistent. Afaik. Thank science that other languages are better in that regard (here's Ruby): irb(main):002:0> "08".to_i => 8 irb(main):00
by madrobby 16y ago
Yes, they should be consistent. Afaik. Thank science that other languages are better in that regard (here's Ruby):
irb(main):002:0> "08".to_i
=> 8
irb(main):003:0> "08".to_i(8)
=> 0