Clojure

Reader Bug for making vector of numbers

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Declined
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    Windows 8 , Core i7

Description

When Trying To Make a Vector of Numbers Like 01 04 ... it's OK!
=> (vector 04)
; [4]
But When Trying To Make a Vector of "09" It Says :
NumberFormatException Invalid Number: 09

Activity

Hide
Alex Miller added a comment -

Numbers with a leading 0 are read as octal (valid digits = 0-7). Example:

> 0100
64

So, this is the expected behavior.

Show
Alex Miller added a comment - Numbers with a leading 0 are read as octal (valid digits = 0-7). Example:
> 0100
64
So, this is the expected behavior.
Alex Miller made changes -
Field Original Value New Value
Resolution Declined [ 2 ]
Status Open [ 1 ] Closed [ 6 ]
Hide
Amin Razavi added a comment -

shame on me , sorry.

Show
Amin Razavi added a comment - shame on me , sorry.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: