`read` reads binary, not text.  939577809079766321 = d0a0d0a0d0a0d31 in 
hex, notice the last two digits (31) is the ASCII code for '1'  0d is 
carriage return and 0a is line feed.  Those are the binary values of what 
you typed.

you should use text IO to read the line, eg `readline()` and then convert 
to int, eg `x=int(readline())`

Cheers
Lex

On Sunday, May 24, 2015 at 3:35:03 AM UTC+10, paul analyst wrote:
>
> What wrong ? after typing "1" var = 939577809079766321
> (one ENTER is to small )
>
> julia> println("type any digit and ENTER");x=read(STDIN,Int)
> type any digit and ENTER
> 1
>
> 939577809079766321
> julia>
>
> julia> x
> 939577809079766321
>
> julia> println("type any digit and ENTER");x=read(STDIN,Int64)
> type any digit and ENTER
> 1
>

Reply via email to